Code Monkey home page Code Monkey logo

jenkins-job-action's Introduction

Build jenkins job from Github Action ๐Ÿš€

This action builds a jenkins job with parameters. (Single Job)

Inputs

jenkins-token

https://www.jenkins.io/blog/2018/07/02/new-api-token-system/ (Required)

jenkins-url

i.e https://your-jenkins-site.com (Required)

jenkins-user

user owner of the token (Required)

jenkins-job

Jenkins job name

i.e Production-deployment-pipeline (Required)

jenkins-wait-job

Not mandatory

Wait for the job build status

values

 "wait" #Default
 "no-wait"

jenkins-job-params

Not mandatory

Set jenkins params as JSON string:

i.e

 "{'param1': 'value1', 'param2': 'value2'}"

Outputs

status/result

  • FAILURE
  • SUCCESS
  • ABORTED
  • EXECUTED

Example usage

    - name: Build single job
      uses: Mondtic/build-jenkins-job@master
      with:
        jenkins-url: ${{ secrets.JENKINS_URL }}
        jenkins-token: ${{ secrets.JENKINS_TOKEN }}
        jenkins-user: ${{ secrets.JENKINS_USER }}
        jenkins-job: ${{ secrets.JENKINS_JOB }}
        jenkins-job-params: "{'stringparam': 'stringvalue', 'booleanparam': false}"
        jenkins-wait-job: "no-wait"

Notes:

If your job needs params and you want to use the default params, you will need to set Jenkins-job-params: "{'any_param': 'any_value'}" otherwise, you will receive a 400 Bad request error.

jenkins-job-action's People

Contributors

alec4r avatar akhil-intellect avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.