=)
This commit is contained in:
32
CleanArchitecture/Pro.Jenkinsfile
Normal file
32
CleanArchitecture/Pro.Jenkinsfile
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
pipeline {
|
||||||
|
|
||||||
|
agent any
|
||||||
|
|
||||||
|
environment {
|
||||||
|
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} .'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user