diff --git a/Jenkinsfile b/Jenkinsfile index 9fca0c4e4..cabebea0a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -145,7 +145,7 @@ pipeline { steps { withDockerRegistry(url: "https://${env.WERF_REPO}", credentialsId: "ecr:us-east-2:aws-nrel-tada-ci") { withCredentials([aws(credentialsId: "aws-nrel-tada-ci")]) { - withKubeConfig([credentialsId: "kubeconfig-nrel-reopt-prod2"]) { + withKubeConfig([credentialsId: "kubeconfig-nrel-reopt-prod3"]) { tadaWithWerfNamespaces(rancherProject: "reopt-api-staging", primaryBranch: "master", dbBaseName: "reopt_api_staging", baseDomain: "${STAGING_BASE_DOMAIN}") { withCredentials([string(credentialsId: "reopt-api-werf-secret-key", variable: "WERF_SECRET_KEY")]) { sh """ @@ -180,7 +180,7 @@ pipeline { steps { withDockerRegistry(url: "https://${env.WERF_REPO}", credentialsId: "ecr:us-east-2:aws-nrel-tada-ci") { withCredentials([aws(credentialsId: "aws-nrel-tada-ci")]) { - withKubeConfig([credentialsId: "kubeconfig-nrel-reopt-prod2"]) { + withKubeConfig([credentialsId: "kubeconfig-nrel-reopt-prod3"]) { tadaWithWerfNamespaces(rancherProject: "reopt-api-production", primaryBranch: "master") { withCredentials([string(credentialsId: "reopt-api-werf-secret-key", variable: "WERF_SECRET_KEY")]) { sh """ diff --git a/Jenkinsfile-image-cleanup b/Jenkinsfile-image-cleanup index 30fec4993..881a2d607 100644 --- a/Jenkinsfile-image-cleanup +++ b/Jenkinsfile-image-cleanup @@ -38,7 +38,7 @@ pipeline { steps { withDockerRegistry(url: "https://${env.WERF_REPO}", credentialsId: "ecr:us-east-2:aws-nrel-tada-ci") { withCredentials([aws(credentialsId: "aws-nrel-tada-ci")]) { - tadaRancherAllProjectNamespacesKubeConfig(projects: [[credentialsId: "kubeconfig-nrel-reopt-test", rancherProject: "reopt-api-dev"], [credentialsId: "kubeconfig-nrel-reopt-prod2", rancherProject: "reopt-api-staging"], [credentialsId: "kubeconfig-nrel-reopt-prod2", rancherProject: "reopt-api-production"]]) { + tadaRancherAllProjectNamespacesKubeConfig(projects: [[credentialsId: "kubeconfig-nrel-reopt-test", rancherProject: "reopt-api-dev"], [credentialsId: "kubeconfig-nrel-reopt-prod3", rancherProject: "reopt-api-staging"], [credentialsId: "kubeconfig-nrel-reopt-prod2", rancherProject: "reopt-api-production"]]) { withCredentials([gitUsernamePassword(credentialsId: "github-nrel-gov-admin")]) { sh "werf cleanup --scan-context-namespace-only" } diff --git a/Jenkinsfile-undeploy-staging b/Jenkinsfile-undeploy-staging index 571b34ba8..f68483607 100644 --- a/Jenkinsfile-undeploy-staging +++ b/Jenkinsfile-undeploy-staging @@ -55,7 +55,7 @@ pipeline { stages { stage("undeploy-branches") { steps { - withKubeConfig([credentialsId: "kubeconfig-nrel-reopt-prod2"]) { + withKubeConfig([credentialsId: "kubeconfig-nrel-reopt-prod3"]) { tadaUndeployEachBranch(rancherProject: env.RANCHER_PROJECT, undeployDeletedBranches: params.UNDEPLOY_DELETED_BRANCHES, undeployMergedBranches: params.UNDEPLOY_MERGED_BRANCHES, undeployBranchNames: params.UNDEPLOY_BRANCH_NAMES, primaryBranch: "master") { tadaWithWerfEnv(rancherProject: env.RANCHER_PROJECT, dbBaseName: env.DB_BASE_NAME) { tadaUndeployBranch()