Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
480 B
0
Indexable
Never
PROJECT_KEY="DEMO"
NEW_JOB_KEY="NEWJOB"
NEW_JOB_NAME="New Job"
NEW_JOB_DESCRIPTION="This is a new job created by the script."

bamboo --action addJob \
       --project "${PROJECT_KEY}" \
       --build "${NEW_JOB_KEY}" \
       --description "${NEW_JOB_DESCRIPTION}" \
       --enabled true \
       --manual \
       --server "${BAMBOO_SERVER}" \
       --user "${BAMBOO_USERNAME}" \
       --password "${BAMBOO_PASSWORD}"

echo "New job '${NEW_JOB_NAME}' created successfully."
Leave a Comment