Commit 146f758b authored by Philippe Krief's avatar Philippe Krief
Browse files

Rename the default branch to be 'master'


Signed-off-by: Philippe Krief's avatarPhilippe Krief <philippe.krief@eclipse-foundation.org>
parent 2da9d6ae
......@@ -52,7 +52,7 @@ spec:
sshagent(['git.eclipse.org-bot-ssh']) {
sh '''
git clone ssh://genie.${PROJECT_NAME}@git.eclipse.org:29418/www.eclipse.org/${PROJECT_NAME}.git .
if [ "${BRANCH_NAME}" = "main" ]; then
if [ "${BRANCH_NAME}" = "master" ]; then
git checkout master
else
git checkout ${BRANCH_NAME}
......@@ -62,9 +62,9 @@ spec:
}
}
}
stage('Build website (main) with Hugo') {
stage('Build website (master) with Hugo') {
when {
branch 'main'
branch 'master'
}
steps {
container('hugo') {
......@@ -89,7 +89,7 @@ spec:
stage('Push to $env.BRANCH_NAME branch') {
when {
anyOf {
branch "main"
branch "master"
branch "staging"
}
}
......@@ -105,7 +105,7 @@ spec:
git config user.name "${PROJECT_BOT_NAME}"
git commit -m "Website build ${JOB_NAME}-${BUILD_NUMBER}"
git log --graph --abbrev-commit --date=relative -n 5
if [ "${BRANCH_NAME}" = "main" ]; then
if [ "${BRANCH_NAME}" = "master" ]; then
git push origin HEAD:master
else
git push origin HEAD:${BRANCH_NAME}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment