Step Arguments Status Start of Pipeline - (2 min 15 sec in block)
echo - (2 ms in self) [WARNING] label option is deprecated. To use a static pod template, use the 'inheritFrom' option.
podTemplate - (2 min 14 sec in block)
podTemplate block - (2 min 14 sec in block)
node - (2 min 14 sec in block) hugo-agent
node block - (1 min 27 sec in block)
dir - (50 sec in block) hugo
dir block - (50 sec in block)
stage - (50 sec in block) Declarative: Checkout SCM
stage block (Declarative: Checkout SCM) - (50 sec in block)
checkout - (50 sec in self)
withEnv - (36 sec in block) GIT_BRANCH, GIT_COMMIT, GIT_PREVIOUS_COMMIT, GIT_PREVIOUS_SUCCESSFUL_COMMIT, GIT_URL
withEnv block - (36 sec in block)
withEnv - (36 sec in block) PROJECT_BOT_NAME, PROJECT_WEBSITE_REPO, PROJECT_GH_ORG, PROJECT_NAME
withEnv block - (36 sec in block)
timeout - (36 sec in block)
timeout block - (36 sec in block)
stage - (19 sec in block) Checkout www repo
stage block (Checkout www repo) - (19 sec in block)
dir - (19 sec in block) www
dir block - (19 sec in block)
sshagent - (19 sec in block)
sshagent block - (16 sec in block)
sh - (16 sec in self)
git clone git@github.com:${PROJECT_GH_ORG}/${PROJECT_WEBSITE_REPO}.git .
git checkout ${BRANCH_NAME}
stage - (8.4 sec in block) Build website master/staging with Hugo
stage block (Build website master/staging with Hugo) - (3.6 sec in block)
container - (3.6 sec in block) hugo
container block - (3.6 sec in block)
dir - (3.6 sec in block) hugo
dir block - (2.6 sec in block)
sh - (2.6 sec in self) hugo -b https://eclipse.dev/${PROJECT_NAME}/
stage - (8.1 sec in block) Push to master/staging branch
stage block (Push to master/staging branch) - (8.1 sec in block)
sh - (0.94 sec in self) rm -rf www/* && cp -Rvf hugo/public/* www/
dir - (7.1 sec in block) www
dir block - (7.1 sec in block)
sshagent - (6.4 sec in block)
sshagent block - (3.5 sec in block)
sh - (3.5 sec in self)
git add -A
if ! git diff --cached --exit-code; then
echo "Changes have been detected, publishing to repo '${PROJECT_GH_ORG}/${PROJECT_WEBSITE_REPO}'"
git config user.email "${PROJECT_NAME}-bot@eclipse.org"
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}" = "master" ]; then
git push origin HEAD:master
else
git push origin HEAD:${BRANCH_NAME}
fi
else
echo "No changes have been detected since last build, nothing to publish"
fi