Project

General

Profile

Build script » History » Version 2

Luke Murphey, 02/14/2017 10:43 PM

1 1 Luke Murphey
h1. Build script
2 1 Luke Murphey
3 1 Luke Murphey
h2. Benefits
4 2 Luke Murphey
# Creates a Splunk app file easily (without having to run a bunch of CLI tools manually). It will also populate the build file with things like the build date and perform minification.
5 2 Luke Murphey
# Deploys your changes to a local Splunk install for testing your changes (avoids manually copying the files over).
6 2 Luke Murphey
# 
7 1 Luke Murphey
8 1 Luke Murphey
9 1 Luke Murphey
h2. Structure code layout
10 1 Luke Murphey
11 1 Luke Murphey
h2. Add build script
12 1 Luke Murphey
13 1 Luke Murphey
h2. Make default.properties file
14 1 Luke Murphey
15 1 Luke Murphey
h2. Make local.properties file
16 1 Luke Murphey
17 1 Luke Murphey
h2. Use the build script
18 1 Luke Murphey
19 1 Luke Murphey
Targets for publishing the Splunk app (the main one):
20 1 Luke Murphey
* package
21 1 Luke Murphey
22 1 Luke Murphey
Targets that help you while developing Splunk apps:
23 1 Luke Murphey
* splunk.deploy
24 1 Luke Murphey
* splunk.start, splunk.restart, splunk.stop, splunk.restart_web
25 1 Luke Murphey
* splunk.deploy_and_refresh
26 1 Luke Murphey
27 1 Luke Murphey
Targets for testing:
28 1 Luke Murphey
* test.run_unit