Skip to content

Commit d261eda

Browse files
authored
Remove nodeAffinity from premerge pipeline (#853)
Signed-off-by: Peixin Li <[email protected]>
1 parent 79d23f7 commit d261eda

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

jenkins/Jenkinsfile-blossom.premerge

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,7 @@ spec:
8484
tty: true
8585
nodeSelector:
8686
kubernetes.io/os: linux
87-
affinity:
88-
nodeAffinity:
89-
requiredDuringSchedulingIgnoredDuringExecution:
90-
nodeSelectorTerms:
91-
- matchExpressions:
92-
- key: nvidia.com/gpu_type
93-
operator: In
94-
values: GPU_TYPES
87+
nvidia.com/gpu_type: GPU_TYPE
9588
"""
9689

9790
def githubHelper // blossom github helper
@@ -123,7 +116,7 @@ pipeline {
123116
GITHUB_TOKEN = credentials("github-token")
124117
URM_CREDS = credentials("urm_creds")
125118
URM_URL = "https://${ArtifactoryConstants.ARTIFACTORY_NAME}/artifactory/sw-spark-maven"
126-
GPU_TYPES = credentials("pre-merge_gpu_types")
119+
GPU_TYPE = credentials("pre-merge_gpu_type")
127120
PVC = credentials("pvc")
128121
CUSTOM_WORKSPACE = "/home/jenkins/agent/workspace/${BUILD_TAG}"
129122
}
@@ -197,7 +190,7 @@ pipeline {
197190
uploadDocker(IMAGE_PREMERGE)
198191

199192
pluginPremerge = pluginPremerge.replace("IMAGE_PREMERGE", "$IMAGE_PREMERGE")
200-
pluginPremerge = pluginPremerge.replace("GPU_TYPES", "$GPU_TYPES")
193+
pluginPremerge = pluginPremerge.replace("GPU_TYPE", "$GPU_TYPE")
201194
}
202195
}
203196
}

0 commit comments

Comments
 (0)