This Github action helps you to programmatically trigger Jenkins jobs.
As a prerequisite you need to have two environment variables available:
JENKINS_USER
: Your Jenkins usernameJENKINS_TOKEN
: Your Jenkins API token
This can be achieved by any previous step or other measure to inject credentials into your workflow. For LeanIX use-cases you can use this action. Subsequently you can integrate your Jenkins job:
- uses: leanix/jenkins-action@master
with:
jobBuildUrl: https://myci.inter.net/job/my-job/build
Please note that you need to provide the build URL of your job. Depending on your job this could be /build
, /buildWithParameters
, etc.
The following parameters are currently supported:
jobBuildUrl
: Build URL of your jobwaitForCompletion
: Actively poll until the job completes with success, error, etc.parameters
: Linebreak-separated list of key value pairs to be provided as parameters for the job
Copyright 2020 LeanIX GmbH under the Unlicense license.