Skip to content

Commit

Permalink
chore(docs&docs-cn): print branch info in docs merged pipeline (#2916)
Browse files Browse the repository at this point in the history
print branch info in docs merged pipeline.

Signed-off-by: purelind <purelind@gmail.com>
  • Loading branch information
purelind committed Apr 15, 2024
1 parent 0fb820c commit 6815a11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ pipeline {
"""
container(name: 'net-tool') {
sh 'dig github.com'
script {
currentBuild.description = "branch ${REFS.base_ref}: ${REFS.base_sha}"
}
}
}
}
Expand Down Expand Up @@ -79,7 +82,6 @@ pipeline {
python3 scripts/merge_by_toc.py
scripts/generate_pdf.sh
"""
// TODO: uncomment this line after pipeline test passed
sh label: 'Upload pdf', script: """#!/usr/bin/env bash
target_version=\$(echo ${REFS.base_ref} | sed 's/release-//')
if [ "${REFS.base_ref}" = "master" ]; then
Expand Down
4 changes: 3 additions & 1 deletion pipelines/pingcap/docs/latest/merged_update_docs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ pipeline {
"""
container(name: 'net-tool') {
sh 'dig github.com'
script {
currentBuild.description = "branch ${REFS.base_ref}: ${REFS.base_sha}"
}
}
}
}
Expand Down Expand Up @@ -81,7 +84,6 @@ pipeline {
python3 scripts/merge_by_toc.py
scripts/generate_pdf.sh
"""

sh label: 'Upload pdf', script: """#!/usr/bin/env bash
target_version=\$(echo ${REFS.base_ref} | sed 's/release-//')
if [ "${REFS.base_ref}" = "master" ]; then
Expand Down

0 comments on commit 6815a11

Please sign in to comment.