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 rules
directory.
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
to /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 /opt/stackstorm/configs/
please
remember to tell StackStorm to load these new values by running
st2ctl reload --register-configs
build_job
- Kick off CI build based on project namelist_running_jobs
- List all currently running jobsenable_job
- Enable Jenkins jobdisable_job
- Disable Jenkins jobget_job_info
- Retrieve Jenkins job informationinstall_plugin
- Install pluginrebuild_last_job
- Rebuild last Jenkins joblist_jobs_regex
- List Jenkins job name by regex pattern