Step Arguments Status Start of Pipeline - (46 sec in block)
echo - (1 ms in self) [WARNING] label option is deprecated. To use a static pod template, use the 'inheritFrom' option.
podTemplate - (46 sec in block)
podTemplate block - (46 sec in block)
node - (46 sec in block) hugo-agent
node block - (29 sec in block)
dir - (17 sec in block) hugo
dir block - (17 sec in block)
stage - (17 sec in block) Declarative: Checkout SCM
stage block (Declarative: Checkout SCM) - (17 sec in block)
checkout - (17 sec in self)
withEnv - (11 sec in block) GIT_BRANCH, GIT_COMMIT, GIT_PREVIOUS_COMMIT, GIT_PREVIOUS_SUCCESSFUL_COMMIT, GIT_URL
withEnv block - (11 sec in block)
withEnv - (11 sec in block) PROJECT_BOT_NAME, PROJECT_WEBSITE_REPO, PROJECT_GH_ORG, PROJECT_NAME
withEnv block - (11 sec in block)
timeout - (11 sec in block)
timeout block - (11 sec in block)
stage - (5.9 sec in block) Checkout www repo
stage block (Checkout www repo) - (5.9 sec in block)
dir - (5.9 sec in block) www
dir block - (5.9 sec in block)
sshagent - (5.8 sec in block)
sshagent block - (4.5 sec in block)
sh - (4.5 sec in self)
git clone git@github.com:${PROJECT_GH_ORG}/${PROJECT_WEBSITE_REPO}.git .
git checkout ${BRANCH_NAME}
stage - (1.4 sec in block) Build website with Hugo
stage block (Build website with Hugo) - (1.4 sec in block)
container - (1.4 sec in block) hugo
container block - (1.4 sec in block)
dir - (1.3 sec in block) hugo
dir block - (1.3 sec in block)
sh - (1.3 sec in self) hugo -b https://eclipse.dev/${PROJECT_NAME}/
stage - (4.2 sec in block) Push to master branch
stage block (Push to master branch) - (4.2 sec in block)
sh - (0.34 sec in self) rm -rf www/* && cp -Rvf hugo/public/* www/
dir - (3.9 sec in block) www
dir block - (3.9 sec in block)
sshagent - (3.8 sec in block)
sshagent block - (2.5 sec in block)
sh - (2.4 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