run-jenkins-jobs

Run jenkins job from codefresh pipeline

arguments

  • jenkins_build_params - Variables providing to jenkins job, uses when jenkins_parameterized_job is true. Variables should be declared in jenkins job settings(undeclared variables will be ignored by jenkins).
  • jenkins_job_name - Jenkins job to run (required).
  • jenkins_parameterized_job - Type of jenkins job.
  • jenkins_token - Jenkins token (required).
  • jenkins_url - Jenkins machine url (required).
  • jenkins_username - Jenkins username (required).
    RunJenkins:
  title: Triggering Jenkins Job
  type: run-jenkins-jobs
  arguments:
    jenkins_url: 'http://yourjenkins.com:80'
    jenkins_token: usertoken
    jenkins_job_name: jobname1
    jenkins_username: username
    jenkins_parameterized_job: false

  
    RunJenkins:
  title: Triggering Jenkins Job
  type: run-jenkins-jobs
  arguments:
    jenkins_url: 'http://yourjenkins.com:80'
    jenkins_token: usertoken
    jenkins_job_name: jobname2
    jenkins_username: username
    jenkins_parameterized_job: true
    jenkins_build_params:
      - KEY1=VAL1
      - KEY2=VAL2
      - KEY3=VAL3

  
github.com
Roman Kuchuk
Jan 31, 2020