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

Commit b1c1122

Browse files
GaoMingKaiyanbin7
authored andcommitted
add checks function (#199)
* add checks function * add ubutun config
1 parent 5ce7796 commit b1c1122

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/conference.jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ pipeline {
8282
}
8383

8484
post {
85+
always {
86+
script {
87+
sh "curl -H \"Content-Type: application/json\" -X POST --data '{\"commit_id\":\"'$GIT_COMMIT'\",\"job_path\":\"'${env.JS_CHECK_PATH}'\",\"job_name\":\"'$JOB_BASE_NAME'\",\"build_num\":\"'$BUILD_NUMBER'\",\"os_version\":\"'$env.CENTOS_VERSION'\"}' '${env.checkServerUrl}'/runServer/JS_BUILD_CONFERENCE_STEPS"
88+
}
89+
}
8590
success {
8691
setBuildStatus("Build succeeded", "SUCCESS");
8792
}

test/ubuntuconference.jenkinsfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ void setBuildStatus(String message, String state) {
22
step([
33
$class: "GitHubCommitStatusSetter",
44
reposSource: [$class: "ManuallyEnteredRepositorySource", url: "${REPO_URL}/owt-client-javascript"],
5-
contextSource: [$class: "ManuallyEnteredCommitContextSource", context: "ci/jenkins/conference"],
5+
contextSource: [$class: "ManuallyEnteredCommitContextSource", context: "ci/jenkins/ubuntuconference"],
66
errorHandlers: [[$class: "ChangingBuildStatusErrorHandler", result: "UNSTABLE"]],
77
statusResultSource: [$class: "ConditionalStatusResultSource", results: [[$class: "AnyBuildResult", message: message, state: state]]]
88
]);
@@ -82,6 +82,12 @@ pipeline {
8282
}
8383

8484
post {
85+
86+
always {
87+
script {
88+
sh "curl -H \"Content-Type: application/json\" -X POST --data '{\"commit_id\":\"'$GIT_COMMIT'\",\"job_path\":\"'${env.JS_CHECK_UBUNTU_PATH}'\",\"job_name\":\"'$JOB_BASE_NAME'\",\"build_num\":\"'$BUILD_NUMBER'\",\"os_version\":\"'$env.UBUTUN_VERSION'\"}' '${env.checkServerUrl}'/runServer/JS_BUILD_CONFERENCE_STEPS"
89+
}
90+
}
8591
success {
8692
setBuildStatus("Build succeeded", "SUCCESS");
8793
}

0 commit comments

Comments
 (0)