Project

General

Profile

Build script » History » Version 3

« Previous - Version 3/5 (diff) - Next » - Current version
Luke Murphey, 02/14/2017 10:44 PM


Build script

Benefits

  1. 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.
  2. Deploys your changes to a local Splunk install for testing your changes (avoids manually copying the files over). #

Structure code layout

Add build script

Make default.properties file

Make local.properties file

Use the build script

Targets for publishing the Splunk app (the main one):
  • package
Targets that help you while developing Splunk apps:
  • splunk.deploy
  • splunk.start, splunk.restart, splunk.stop, splunk.restart_web
  • splunk.deploy_and_refresh
Targets for testing:
  • test.run_unit