Sign inSign up

tomdesinto/jenkins-remote-builder

By tomdesinto

Updated almost 8 years ago

shell script to synchronously trigger a job in a remote Jenkins

Image
0

300

tomdesinto/jenkins-remote-builder repository overview

#Build Jenkins Jobs Remotely

##Example

jenkins=https://user:[email protected]:8080
jenkins_job=MyApp-Deploy

environment=dev
application=myapp
revision=9fd71f63b351b8208264daf86d292ced580a2f60

./jenkins_remote_trigger.sh \
            -h ${jenkins} \
            -j ${jenkins_job} \
            -p "ENVIRONMENT=${environment}&APPLICATION=${application}&REVISION=${revision}"

##Usage:

-h HOST     | --host=HOST                       Jenkins host
-j JOBNAME  | --jobname=test-build-job          The name of the jenkins job to trigger
-p JOBPARAM | --jobparam=environment=uat&test=1 Jenkins job paramiters
-q          | --quiet                           Don't output any status messages

##TODO:

  • Timeout

Tag summary

Content type

Image

Digest

Size

3.2 MB

Last updated

almost 8 years ago

docker pull tomdesinto/jenkins-remote-builder