Skip to content

Commit

Permalink
Merge pull request NVIDIA#1486 from NVIDIA/bot-auto-merge-branch-23.10
Browse files Browse the repository at this point in the history
[auto-merge] bot-auto-merge-branch-23.10 to branch-23.12 [skip ci] [bot]
  • Loading branch information
nvauto authored Oct 10, 2023
2 parents 6dd74fc + 6106e62 commit 57c71b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ci/Jenkinsfile.premerge
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ pipeline {
container('cpu') {
// check if pre-merge dockerfile modified
def dockerfileModified = sh(returnStdout: true,
script: 'BASE=$(git --no-pager log --oneline -1 | awk \'{ print $NF }\'); ' +
'git --no-pager diff --name-only HEAD $(git merge-base HEAD $BASE) ' +
"-- ${PREMERGE_DOCKERFILE} || true")
script: """BASE=\$(git --no-pager log --oneline -1 | awk \'{ print \$NF }\')
git --no-pager diff --name-only HEAD \$BASE -- ${PREMERGE_DOCKERFILE} || true""").trim()
echo "$dockerfileModified"

if (!dockerfileModified?.trim()) {
TEMP_IMAGE_BUILD = false
}
Expand Down

0 comments on commit 57c71b9

Please sign in to comment.