Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit a8a600d

Browse files
authored
Merge pull request #90 from zhenqi522/jenkinsfile
Replace git_branch to git_commit
2 parents e71c193 + c97a61d commit a8a600d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/conference.jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
void setBuildStatus(String message, String state) {
22
step([
33
$class: "GitHubCommitStatusSetter",
4-
reposSource: [$class: "ManuallyEnteredRepositorySource", url: "https://github.com/open-media-streamer/oms-client-javascript"],
4+
reposSource: [$class: "ManuallyEnteredRepositorySource", url: "${REPO_URL}/owt-client-javascript"],
55
contextSource: [$class: "ManuallyEnteredCommitContextSource", context: "ci/jenkins/conference"],
66
errorHandlers: [[$class: "ChangingBuildStatusErrorHandler", result: "UNSTABLE"]],
77
statusResultSource: [ $class: "ConditionalStatusResultSource", results: [[$class: "AnyBuildResult", message: message, state: state]] ]
@@ -32,7 +32,7 @@ pipeline {
3232
]){
3333
node ('pack-mcu') {
3434
container ('pack-on-centos') {
35-
sh "/root/packSDKInDocker.sh software $env.CHANGE_BRANCH $env.GIT_BRANCH $env.CHANGE_ID"
35+
sh "/root/packSDKInDocker.sh software $env.GIT_COMMIT $env.GIT_BRANCH $env.CHANGE_ID"
3636
}
3737
}
3838
}
@@ -49,7 +49,7 @@ pipeline {
4949

5050
node('api-test') {
5151
container('api-test') {
52-
sh "/root/start.sh ${env.GIT_BRANCH}1 ConferenceClient_api"
52+
sh "/root/start.sh ${env.GIT_COMMIT}1 ConferenceClient_api"
5353
}
5454
}
5555
}
@@ -64,7 +64,7 @@ pipeline {
6464

6565
node('subscribe-test') {
6666
container('subscribe-test') {
67-
sh "/root/start.sh ${env.GIT_BRANCH}2 ConferenceClient_subscribe"
67+
sh "/root/start.sh ${env.GIT_COMMIT}2 ConferenceClient_subscribe"
6868
}
6969
}
7070
}

0 commit comments

Comments
 (0)