File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ pipeline {
17
17
environment {
18
18
GITLAB_URL = credentials(' gitlab_url' )
19
19
GITLAB_TOKEN = credentials(' GITLAB_TOKEN_ALL' )
20
+ GITLAB_INTEG_TESTS_TRIGGER_URL = credentials(' gitlab-trigger-java-integ-tests' )
20
21
// Note: for key use Jenkins secret file with PGP key as text in ASCII-armored format.
21
22
ORG_GRADLE_PROJECT_signingKeyFile = credentials(' objectbox_signing_key' )
22
23
ORG_GRADLE_PROJECT_signingKeyId = credentials(' objectbox_signing_key_id' )
@@ -109,6 +110,11 @@ pipeline {
109
110
110
111
success {
111
112
updateGitlabCommitStatus name : ' build' , state : ' success'
113
+ // Trigger integration tests in GitLab
114
+ // URL configured like <host>/api/v4/projects/<id>/trigger/pipeline?token=<token>
115
+ // Note: do not fail on error in case ref does not exist, only output response
116
+ // --silent --show-error disable progress output but still show errors
117
+ sh ' curl --silent --show-error -X POST "$GITLAB_INTEG_TESTS_TRIGGER_URL&ref=$GIT_BRANCH"'
112
118
}
113
119
}
114
120
}
You can’t perform that action at this time.
0 commit comments