This commit is contained in:
Matias Pou 2026-01-06 14:05:19 -03:00
parent 853e92a07e
commit b1415a6962

10
Jenkinsfile vendored
View file

@ -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.")
}