Skip to content

Instantly share code, notes, and snippets.

@xiii
Created April 5, 2017 11:00
Show Gist options
  • Save xiii/3bce72d0ff2e2af6dee7d306410ab205 to your computer and use it in GitHub Desktop.
Save xiii/3bce72d0ff2e2af6dee7d306410ab205 to your computer and use it in GitHub Desktop.
Post a groovy script to Jenkins
#
# Posts plugins.groovy to JENKINS_ENDPOINT and returns output
#
curl -s --data-urlencode "script=$(<./plugins.groovy)" JENKINS_ENDPOINT/scriptText
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment