Created
October 3, 2018 09:06
-
-
Save adrianmarkperea/06d5d563f91d53ae25c9390d169f8436 to your computer and use it in GitHub Desktop.
Interfaces with Jenkins API to build dev boxes from command line
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
#!/usr/bin/env bash | |
if [ -z $1 ] | |
then | |
echo "DNS not found. Defaulting to aperea" | |
DNS="aperea" | |
else | |
DNS="$1" | |
fi | |
curl -X POST https://ci.tools.flnltd.com/job/Developers/job/flndev/build \ | |
--user aperea@freelancer.com:11b6043efbbb6798569b086175540c5a59 \ | |
--data-urlencode json='{"parameter": [{"name": "DEV_DNS", "value": | |
'"\"$DNS\""'}, {"name": "DEV_EMAIL", "value": "aperea@freelancer.com"}, | |
{"name": "DEV_USERNAME", "value": "aperea"}, {"name": "USE_PRODUCTION_CDN", | |
"value": false}, {"name": "TERMINATE_IF_EXISTS", "value": true}]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment