Jenkins Integration Pack
This pack creates a basic integration with Jenkins
To trigger events from Jenkins, use Jenkins to send a webhook to StackStorm.
Examples of rules can be found in the
Jenkins jobs are required to have the "parameterized" setting enabled in order for this pack to be able to start jobs.
Copy the example configuration in jenkins.yaml.example
/opt/stackstorm/configs/jenkins.yaml and edit as required.
url- FQDN to Jenkins API endpoint (e.x.: http://jenkins.mycompany.org:8080)
username- Jenkins Username (if auth is enabled)
password- Jenkins Password (if auth is enabled)
You can also use dynamic values from the datastore. See the docs for more info.
Note : When modifying the configuration in
remember to tell StackStorm to load these new values by running
st2ctl reload --register-configs
Note : If your Jenkins server has a self-signed certificate and you get
certificate verify failed Error, set
Then reload st2api and st2actionrunner services with commands
st2ctl restart-component st2api and
st2ctl restart-component st2actionrunner
to apply the changes.
build_job- Kick off CI build based on project name
build_job_enh- Kick off CI build based on project name and wait for it to be executed, return build info
list_jobs- List all jobs
enable_job- Enable Jenkins job
disable_job- Disable Jenkins job
get_job_info- Retrieve Jenkins job information
get_build_info- Retrieve Jenkins build information
get_running_builds- Retrieve all running Jenkins builds (possible to filter with regex by name)
install_plugin- Install plugin
rebuild_last_job- Rebuild last Jenkins job
list_jobs_regex- List Jenkins job name by regex pattern
stop_build- Stop a running Jenkins build