Created
July 17, 2018 14:05
-
-
Save kumbasar/7c6aa6f46a23ee3aabc75484e702b860 to your computer and use it in GitHub Desktop.
Remote Jenkins Trigger with Paramaters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
AUTHENTICATION_TOKEN="<AUTHENTICATION_TOKEN>" | |
JENKINS_URL="<JENKINS_URL>" | |
JOB="<JOB>" | |
USER="<USER>" | |
API_TOKEN="<API_TOKEN>" | |
TOKEN="<TOKEN>" | |
EComponents="mydeb.deb" | |
Deploy="true"" | |
DebianPackages=$'nano\nvim' | |
curl --insecure -X POST "https://${JENKINS_URL}/${JOB}/buildWithParameters" \ | |
--user $USER:$API_TOKEN \ | |
--data token="${TOKEN}" \ | |
--data EComponents="${EComponents}" \ | |
--data Deploy="${Deploy}" \ | |
--data DebianPackages="${DebianPackages}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment