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

Commit ca9d28d

Browse files
zhangyihui1yanbin7
authored andcommitted
Using more-accurate method --git-branch to get PR ID. (#184)
1 parent 68dc9c0 commit ca9d28d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/p2p.jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pipeline {
2727
withEnv(['JENKINS_NODE_COOKIE=dontkill']) {
2828
sh "python ${env.startServerScript} --p2p-server-path ${env.p2pServerPath} \
2929
--owner open-webrtc-toolkit --repo owt-client-javascript --commit-id ${GIT_COMMIT} \
30-
--github-script ${env.serverGithubScriptPath} --mode p2p"
30+
--git-branch ${GIT_BRANCH} --github-script ${env.serverGithubScriptPath} --mode p2p --workspace ${WORKSPACE}"
3131
}
3232
}
3333
}
@@ -43,7 +43,7 @@ pipeline {
4343
steps {
4444
sh "python ${env.jsCiScriptPath}/runTest.py --mode ci --source-path ${env.jsSourcePath} \
4545
--browsers chrome --mode ci --owner open-webrtc-toolkit --repo owt-client-javascript \
46-
--commit-id ${GIT_COMMIT} --github-script ${env.jsP2PTestGithubScriptPath}"
46+
--git-branch ${GIT_BRANCH} --github-script ${env.jsP2PTestGithubScriptPath}"
4747
}
4848
}
4949
}
@@ -56,4 +56,4 @@ pipeline {
5656
setBuildStatus("${env.jsUrl}", "Build failed", "FAILURE");
5757
}
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)