K2 Jenkins Pipeline

Integrating K2 Solution with Jenkins CI/CD Pipeline.

Step 1: Create a new Pipeline Job.

  • Click "New Item" from the left menu in the Jenkins.

  • Enter the Pipeline Job Name and select the job type as "Pipeline". Click "OK" once done.

  • Once the pipeline job is created, you'll be redirected to the pipeline configuration page.

Step 2: Add the K2 Jenkins Pipeline script in the newly created Pipeline Job.

  • Copy pipeline script from below.

  • Paste this script in the "Pipeline" section of your newly created pipeline job.

  • Save the changes

Step 3: Run a sample build to import all the parameters in the job.

  • Click on the "Build Now" to run this pipeline job.

  • This will trigger a sample build which is expected to fail.

  • Once this sample build is complete, reload the page.

  • The "Build Now" link will change to "Build with Parameters".

  • Click on "Build with Parameters", populate the values to the relevant fields.

  • Run the build.

Last updated

Was this helpful?