diff --git a/Jenkinsfile b/Jenkinsfile index b2004c4..4ad998a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,9 +6,9 @@ pipeline { environment { IMAGE_NAME = 'rd.jenkins' - AWS_URL = "test" - AWS_USER = "test" - AWS_REGION = "test" + AWS_URL = "test" //credentials('aws-ecr-url') + AWS_USER = "test" //credentials('aws-ecr-username') + AWS_REGION = "test" //credentials('aws-ecr-region') AWS_CREDS_ID = 'aws-jenkins' } @@ -35,8 +35,8 @@ pipeline { error("Stopping pipeline: not a tag push.") } - if (!(tagName ==~ /^v[0-9]+\.[0-9]+(\.[0-9]+){0,2}$/)) { - echo "[!] Invalid tag format. Expected format: vX.Y.Z.K" + if (!(tagName ==~ /^v[0-9]+(\.[0-9]+){0,2}$/)) { + echo "[!] Invalid tag format. Expected format: vX.Y.Z" currentBuild.result = 'SUCCESS' error("Stopping pipeline: invalid tag format.") }