From b3942f6a475fb5b6f4337bf6539b4b9b65227219 Mon Sep 17 00:00:00 2001 From: Sylvain Gibier Date: Fri, 16 Jun 2023 15:51:26 +0200 Subject: [PATCH] fix pippeline --- environments/aws/eu-west-1/int/Jenkinsfile | 33 ---------------------- 1 file changed, 33 deletions(-) diff --git a/environments/aws/eu-west-1/int/Jenkinsfile b/environments/aws/eu-west-1/int/Jenkinsfile index 50cfde2..2f5f78a 100644 --- a/environments/aws/eu-west-1/int/Jenkinsfile +++ b/environments/aws/eu-west-1/int/Jenkinsfile @@ -12,18 +12,6 @@ pipeline { } } - parameters { - - gitParam('BRANCH_TAG') { - description('Git tag or branch to use for this Terraform build') - type('BRANCH_TAG') - sortMode('ASCENDING') - defaultValue('origin/master') - tagFilter('*') - } - - } - environment { GIT_SSH_COMMAND = "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" @@ -49,27 +37,6 @@ pipeline { stages { - stage("check branch/tag") { - steps { - sshagent(credentials: ['sofa-user-automation']) { - script { - env.PLAN_STATUS = sh(script: """ - | if [[ "\$(git ls-remote origin 2>/dev/null | grep 'refs/tags/$tag\$')" ]]; then - | echo "Release $tag exists" - | exit 1 - | fi - """.stripMargin('| '), returnStatus: true) - - if (env.PLAN_STATUS == "1") { - currentBuild.result = "FAILURE" - error('Aborting the build.') - return - } - } - } - } - } - stage('terraform init') { steps { container('terraform') {