Skip to content

Commit b980b76

Browse files
committed
[testing] Try the github-integration plugin
1 parent 649360b commit b980b76

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ stage('Sanity Check') {
162162
./tests/scripts/git_skip_ci.sh
163163
'''
164164
)
165+
// if (skip_ci == 1) {
166+
// githubPRAddLabels(labelProperty: "CI was skipped")
167+
// }
168+
githubPRAddLabels(labelProperty: "CI was skipped")
165169
sh "${docker_run} ${ci_lint} ./tests/scripts/task_lint.sh"
166170
}
167171
}

tests/python/unittest/test_ci.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def test(commands, should_skip, why):
4747
# Jenkins git is too old and doesn't have 'git init --initial-branch'
4848
git.run("init")
4949
git.run("checkout", "-b", "main")
50+
git.run("config", "user.name", "ci")
51+
git.run("config", "user.email", "[email protected]")
5052
git.run("commit", "--allow-empty", "--message", "base commit")
5153
for command in commands:
5254
git.run(*command)

0 commit comments

Comments
 (0)