1
1
#! /usr/local/env groovy
2
2
/*
3
- * Copyright (c) 2022-2023 , NVIDIA CORPORATION.
3
+ * Copyright (c) 2022-2024 , NVIDIA CORPORATION.
4
4
*
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@ pipeline {
42
42
agent {
43
43
kubernetes {
44
44
label " premerge-init-${ BUILD_TAG} "
45
- cloud ' sc-ipp-blossom-prod '
45
+ cloud " ${ common.CLOUD_NAME } "
46
46
yaml cpuImage
47
47
}
48
48
}
@@ -93,7 +93,7 @@ pipeline {
93
93
94
94
def title = githubHelper. getIssue(). title
95
95
if (title ==~ / .*\[ skip ci\] .*/ ) {
96
- githubHelper. updateCommitStatus(" $B UILD_URL " , " Skipped" , GitHubCommitState . SUCCESS )
96
+ githubHelper. updateCommitStatus(" " , " Skipped" , GitHubCommitState . SUCCESS )
97
97
currentBuild. result == " SUCCESS"
98
98
skipped = true
99
99
return
@@ -113,7 +113,7 @@ pipeline {
113
113
agent {
114
114
kubernetes {
115
115
label " premerge-docker-${ BUILD_TAG} "
116
- cloud ' sc-ipp-blossom-prod '
116
+ cloud " ${ common.CLOUD_NAME } "
117
117
yaml pod. getDockerBuildYAML()
118
118
workspaceVolume persistentVolumeClaimWorkspaceVolume(claimName : " ${ PVC} " , readOnly : false )
119
119
customWorkspace " ${ CUSTOM_WORKSPACE} "
@@ -122,7 +122,7 @@ pipeline {
122
122
123
123
steps {
124
124
script {
125
- githubHelper. updateCommitStatus(" $B UILD_URL " , " Running" , GitHubCommitState . PENDING )
125
+ githubHelper. updateCommitStatus(" " , " Running" , GitHubCommitState . PENDING )
126
126
checkout(
127
127
changelog : false ,
128
128
poll : true ,
@@ -200,7 +200,7 @@ git --no-pager diff --name-only HEAD \$BASE -- ${PREMERGE_DOCKERFILE} || true"""
200
200
agent {
201
201
kubernetes {
202
202
label " premerge-ci-1-${ BUILD_TAG} "
203
- cloud ' sc-ipp-blossom-prod '
203
+ cloud " ${ common.CLOUD_NAME } "
204
204
yaml pod. getGPUYAML(" ${ IMAGE_PREMERGE} " , " ${ env.GPU_RESOURCE} " , ' 8' , ' 32Gi' )
205
205
workspaceVolume persistentVolumeClaimWorkspaceVolume(claimName : " ${ PVC} " , readOnly : false )
206
206
customWorkspace " ${ CUSTOM_WORKSPACE} "
@@ -229,14 +229,15 @@ git --no-pager diff --name-only HEAD \$BASE -- ${PREMERGE_DOCKERFILE} || true"""
229
229
}
230
230
231
231
if (currentBuild. currentResult == " SUCCESS" ) {
232
- githubHelper. updateCommitStatus(" $B UILD_URL " , " Success" , GitHubCommitState . SUCCESS )
232
+ githubHelper. updateCommitStatus(" " , " Success" , GitHubCommitState . SUCCESS )
233
233
} else {
234
234
// upload log only in case of build failure
235
235
def guardWords = [" gitlab.*?\\ .com" , " urm.*?\\ .com" ]
236
236
guardWords. add(" nvidia-smi(?s)(.*?)(?=git)" ) // hide GPU info
237
+ guardWords. add(" sc-ipp*" ) // hide cloud info
237
238
githubHelper. uploadLogs(this , env. JOB_NAME , env. BUILD_NUMBER , null , guardWords)
238
239
239
- githubHelper. updateCommitStatus(" $B UILD_URL " , " Fail" , GitHubCommitState . FAILURE )
240
+ githubHelper. updateCommitStatus(" " , " Fail" , GitHubCommitState . FAILURE )
240
241
}
241
242
242
243
if (TEMP_IMAGE_BUILD ) {
0 commit comments