@@ -13,7 +13,8 @@ def defaultStatusContext = 'Jenkins:auto'
1313// Pod template yaml file is defined in https://github.com/SiftScience/jenkins/tree/master/resources/jenkins-k8s-pod-templates
1414def python2PodTemplateFile = ' python-2-7-pod-template.yaml'
1515def python3PodTemplateFile = ' python-3-10-pod-template.yaml'
16- def podLabel = " python-${ BUILD_TAG} "
16+ def python2PodLabel = " python3-${ BUILD_TAG} "
17+ def python3PodLabel = " python3-${ BUILD_TAG} "
1718
1819
1920// GitHub repo name
@@ -52,7 +53,7 @@ pipeline {
5253 if (env. GIT_BRANCH . equals(' master' )) {
5354 ciUtil. updateGithubCommitStatus(repoName, stage1, ' Started' , ' pending' , commitSha)
5455 try {
55- siftPythonWorkflow. runSiftPythonIntegration(python3PodTemplateFile, podLabel )
56+ siftPythonWorkflow. runSiftPythonIntegration(python3PodTemplateFile, python3PodLabel )
5657 ciUtil. updateGithubCommitStatus(repoName, stage1, ' SUCCESS' , ' success' , commitSha)
5758 } catch (Exception e) {
5859 ciUtil. updateGithubCommitStatus(repoName, stage1, ' FAILURE' , ' failure' , commitSha)
@@ -67,7 +68,7 @@ pipeline {
6768 stage(stage2) {
6869 ciUtil. updateGithubCommitStatus(repoName, stage2, ' Started' , ' pending' , commitSha)
6970 try {
70- siftPythonWorkflow. runSiftPythonBuildAndTest(python2PodTemplateFile, podLabel , ' 3.0.5' , ' 2.27.1' )
71+ siftPythonWorkflow. runSiftPythonBuildAndTest(python2PodTemplateFile, python2PodLabel , ' 3.0.5' , ' 2.27.1' )
7172 ciUtil. updateGithubCommitStatus(repoName, stage2, ' SUCCESS' , ' success' , commitSha)
7273 } catch (Exception e) {
7374 ciUtil. updateGithubCommitStatus(repoName, stage2, ' FAILURE' , ' failure' , commitSha)
@@ -81,7 +82,7 @@ pipeline {
8182 stage(stage3) {
8283 ciUtil. updateGithubCommitStatus(repoName, stage3, ' Started' , ' pending' , commitSha)
8384 try {
84- siftPythonWorkflow. runSiftPythonBuildAndTest(python3PodTemplateFile, podLabel , ' 5.0.1' , ' 2.28.2' )
85+ siftPythonWorkflow. runSiftPythonBuildAndTest(python3PodTemplateFile, python3PodLabel , ' 5.0.1' , ' 2.28.2' )
8586 ciUtil. updateGithubCommitStatus(repoName, stage3, ' SUCCESS' , ' success' , commitSha)
8687 } catch (Exception e) {
8788 ciUtil. updateGithubCommitStatus(repoName, stage3, ' FAILURE' , ' failure' , commitSha)
0 commit comments