This commit is contained in:
Alejandro Sarmiento
2024-03-11 18:36:26 +01:00
parent 868b4918bf
commit 8108b0be2c

View File

@@ -1,32 +0,0 @@
pipeline {
agent any
envirnment {
DOCKER_REGISTRY_URL = credentials('docker-registry-url')
DOCKER_REGISTRY_USER = credentials('docker-registry-user')
DOCKER_REGISTRY_PASSWORD = credentials('docker-registry-password')
ASP_ENVIRONMENT = 'Production'
}
stages {
stage ('Checkout') {
steps {
checkout scm
}
}
stage ('Build') {
steps {
script {
def version = "0.0.${env.BUILD_NUMBER}"
echo 'docker build -t $DOCKER_REGISTRY_URL/$clean-architecture-backend:${version} .'
}
}
}
}
}