Compare commits

...
4 Commits
Author SHA1 Message Date
ecdown 6d315dfff9 updated agone_jenkins
agone-combined/pipeline/pr-main This commit looks good
agone-combined/pipeline/head This commit looks good
2026-09-30 00:02:46 -07:00
ecdown 8ab4197aab fixed typo
agone-combined/pipeline/pr-main There was a failure building this commit
agone-combined/pipeline/head There was a failure building this commit
2026-09-29 23:49:29 -07:00
ecdown f7036c59b8 fixed pr build branching strategy
agone-combined/pipeline/head There was a failure building this commit
agone-combined/pipeline/pr-main There was a failure building this commit
2026-09-29 23:46:46 -07:00
ecdown 8bf5a6ff54 typo
agone-combined/pipeline/pr-main There was a failure building this commit
agone-combined/pipeline/head This commit looks good
2026-09-29 23:31:01 -07:00
+13 -4
View File
@@ -67,7 +67,7 @@ bazel build --spawn_strategy=standalone //:run
// 5. Package the completed full-build intermediate directory
sh '''
rm -f "${COVERITY_BASELINE_ARCHIVE}"
tar -czvf "{COVERITY_BASELINE_ARCHIVE}" cov-int
tar -czf "${COVERITY_BASELINE_ARCHIVE}" cov-int
test -s "${COVERITY_BASELINE_ARCHIVE}"
'''
@@ -100,11 +100,20 @@ bazel build --spawn_strategy=standalone //:run
// 1. Determine target branch and fetch changes
def targetBranch = env.CHANGE_TARGET ?: 'main'
sh "git fetch origin ${targetBranch}"
// 2. Identify changed files relative to the target branch
sh """
git fetch origin \
+refs/heads/${targetBranch}:refs/remotes/origin/${targetBranch}
"""
def mergeBase = sh(
script: "git merge-base HEAD origin/${targetBranch}",
returnStdout: true
).trim()
echo "Merge base: ${mergeBase}"
def changedFiles = sh(
script: "git diff --name-only origin/${targetBranch}...HEAD",
script: "git diff --name-only ${mergeBase} HEAD",
returnStdout: true
).trim()