diff --git a/ceph-website-prs/build/build b/ceph-website-prs/build/build index eb6d49435..496f22003 100755 --- a/ceph-website-prs/build/build +++ b/ceph-website-prs/build/build @@ -22,8 +22,7 @@ npm ci npm run build:development -# This will support "/" and "." in branch names - specific usecase being depadabot branches -OUTPUT_DIR=$(echo "$BRANCH" | tr '/.' '-') +OUTPUT_DIR="$ghprbPullId" if [ ! -d /opt/www/${OUTPUT_DIR} ]; then mkdir -p /opt/www/${OUTPUT_DIR} diff --git a/ceph-website-prs/config/definitions/ceph-website-prs.yml b/ceph-website-prs/config/definitions/ceph-website-prs.yml index 9f5866d28..2b6041f81 100644 --- a/ceph-website-prs/config/definitions/ceph-website-prs.yml +++ b/ceph-website-prs/config/definitions/ceph-website-prs.yml @@ -1,6 +1,6 @@ - job: name: ceph-website-prs - description: This job builds PRs from github.com/ceph/ceph.io and serves them at $branch.ceph.io. + description: This job builds PRs from github.com/ceph/ceph.io and serves them at $prnumber.ceph.io. node: www project-type: freestyle defaults: global @@ -36,7 +36,7 @@ started-status: "Compiling site" success-status: "Site compiled successfully!" failure-status: "Site compilation failed" - success-comment: "Site built/updated successfully! https://${{GIT_BRANCH}}.ceph.io" + success-comment: "Site built/updated successfully! https://${{ghprbPullId}}.ceph.io" scm: - git: