File tree Expand file tree Collapse file tree 1 file changed +35
-26
lines changed Expand file tree Collapse file tree 1 file changed +35
-26
lines changed Original file line number Diff line number Diff line change @@ -104,16 +104,6 @@ pipeline {
104
104
}
105
105
}
106
106
}
107
- stage(' vLLM Tests' ) {
108
- steps {
109
- catchError(buildResult : ' FAILURE' , stageResult : ' FAILURE' ) {
110
- build job : ' qefficient_vllm_upstream' ,
111
- parameters : [string(name : ' NAME' , value : " ${ BUILD_TAG} " )],
112
- propagate : true ,
113
- wait : true
114
- }
115
- }
116
- }
117
107
stage(' QNN CLI Tests' ) {
118
108
steps {
119
109
timeout(time : 30 , unit : ' MINUTES' ) {
@@ -191,20 +181,39 @@ pipeline {
191
181
}
192
182
193
183
post {
194
- always {
195
- script {
196
- try {
197
- sh '''
198
- sudo docker rm -f ${BUILD_TAG}
199
- sudo chown -R ubuntu .
200
- '''
201
- } catch (error) {
202
- echo " Failed to delete container ${ BUILD_TAG} : ${ error} "
203
- }
204
- }
205
- junit testResults : ' tests/tests_log.xml'
206
- echo ' Cleaning Workspace'
207
- deleteDir()
208
- }
209
- }
184
+ success {
185
+ // Trigger downstream job only if this pipeline succeeds
186
+ build job : ' qefficient_vllm_upstream' ,
187
+ parameters : [
188
+ string(name : ' NAME' , value : " ${ BUILD_TAG} " ),
189
+ string(name : ' QEFF_WORKSPACE' , value : " ${ env.WORKSPACE} " )
190
+ ],
191
+ wait : false
192
+ }
193
+ always {
194
+ script {
195
+ try {
196
+ sh '''
197
+ sudo chown -R ubuntu .
198
+ '''
199
+ } catch (error) {
200
+ echo " Failed to change ownership: ${ error} "
201
+ }
202
+ }
203
+ junit testResults : ' tests/tests_log.xml'
204
+ }
205
+ unsuccessful {
206
+ script {
207
+ try {
208
+ sh '''
209
+ sudo docker rm -f ${BUILD_TAG}
210
+ '''
211
+ } catch (error) {
212
+ echo " Failed to delete container ${ BUILD_TAG} : ${ error} "
213
+ }
214
+ }
215
+ echo ' Cleaning Workspace'
216
+ deleteDir()
217
+ }
218
+ }
210
219
}
You can’t perform that action at this time.
0 commit comments