Skip to content

Latest commit

 

History

History
executable file
·
33 lines (20 loc) · 1.35 KB

README.md

File metadata and controls

executable file
·
33 lines (20 loc) · 1.35 KB

Jenkins Action jenkins-action

This Github action helps you to programmatically trigger Jenkins jobs.

Use Action

As a prerequisite you need to have two environment variables available:

  • JENKINS_USER: Your Jenkins username
  • JENKINS_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 job
  • waitForCompletion: 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

Example usage

Copyright and license

Copyright 2020 LeanIX GmbH under the Unlicense license.