test
This commit is contained in:
parent
853e92a07e
commit
b1415a6962
1 changed files with 5 additions and 5 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
|
@ -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.")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue