s
Some checks failed
internetmastercz/test/pipeline/head There was a failure building this commit

This commit is contained in:
2021-10-20 02:44:04 +02:00
parent ec9dfcc214
commit 788feff855

15
Jenkinsfile vendored
View File

@@ -1,32 +1,23 @@
node { node {
stage('Installation') { stage('Installation') {
steps {
echo "start Installation" echo "start Installation"
echo "finish Installation" echo "finish Installation"
}
} }
stage('Build') { stage('Build') {
steps {
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}" echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
echo 'Building..' echo 'Building..'
// sh 'docker build -t registry.proxyq.co/hellsos/website .' // sh 'docker build -t registry.proxyq.co/hellsos/website .'
}
} }
stage('Test') { stage('Test') {
steps {
echo "start Testing" echo "start Testing"
sh 'sleep 5' sh 'sleep 5'
echo "finish Testing" echo "finish Testing"
}
} }
stage('Deploy') { stage('Deploy') {
node { docker.withRegistry("${env.ENV_REGISTRY_URL}", 'registry-credentials-id') {
checkout scm def customImage = docker.build("${env.ENV_REGISTRY_URL}/jenkins/website:${env.BUILD_ID}")
docker.withRegistry("${env.ENV_REGISTRY_URL}", 'registry-credentials-id') { customImage.push()
def customImage = docker.build("${env.ENV_REGISTRY_URL}/jenkins/website:${env.BUILD_ID}")
customImage.push()
}
} }
} }
} }