# Wipe out JJB's cache if $FORCE is set.
[ "$FORCE" = true ] && rm -rf "$HOME/.cache/jenkins_jobs/"
-# Each jenkins master will write its own config file when the
+# Each jenkins controller will write its own config file when the
# jenkins-job-builder gets run
JENKINS_FQDN=$(echo $JENKINS_URL | awk -F/ '{print $3}')
JJB_CONFIG="$HOME/.jenkins_jobs.$JENKINS_FQDN.ini"
JJB_CONFIG="$HOME/.jenkins_jobs.jenkins.ceph.com.ini"
fi
- # Each jenkins-job-builder job should only update the master
+ # Each jenkins-job-builder job should only update the controller
# that started it. This prevents collisions.
if [[ "$JJB_CONFIG" == "$HOME/.jenkins_jobs.$JENKINS_FQDN.ini" ]]; then
# Test the definitions first
fi
done
-# Set JJB_CONFIG back to the one our master wrote so the var can be used in the deletion task below
+# Set JJB_CONFIG back to the one our controller wrote so the var can be used in the deletion task below
JJB_CONFIG="$HOME/.jenkins_jobs.$JENKINS_FQDN.ini"
-# Delete jobs our master has that didn't get job xml written during `jenkins-jobs test`
+# Delete jobs our controller has that didn't get job xml written during `jenkins-jobs test`
# jenkins-job-builder doesn't get a config written so we `grep -v it` so it doesn't get deleted.
for JOB in $(curl -s https://$JENKINS_FQDN/api/json | jq -r '.jobs[].name' | grep -v jenkins-job-builder | sort); do
if [ ! -f $TEMPDIR/$JOB ]; then
description: "
If this is unchecked, then JJB will use its cache to update jobs. This makes this JJB job run faster, but it could cause JJB to fail to update some Jenkins jobs if the jobs have been changed outside of this JJB job's workflow. (This is the default.)
-If this is checked, JJB will wipe out its cache and force each job to align with the configurations in master."
+If this is checked, JJB will wipe out its cache and force each job to align with the configurations in main."
triggers:
- github
- git:
url: https://github.com/ceph/ceph-build
branches:
- - master
+ - main
browser: auto
timeout: 20
- git:
url: https://github.com/ceph/mita.git
branches:
- - master
+ - main
browser: auto
timeout: 20
skip-tag: true
parameters:
- string:
name: BRANCH
- description: "The git branch (or tag) to build, defaults to 'master'"
- default: "master"
+ description: "The git branch (or tag) to build, defaults to 'main'"
+ default: "main"
scm:
- mita