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

This commit is contained in:
2021-10-20 02:42:59 +02:00
parent 713c5d7409
commit ec9dfcc214

50
Jenkinsfile vendored
View File

@@ -1,33 +1,31 @@
pipeline { node {
agent any
stages { stage('Installation') {
stage('Installation') { steps {
steps { echo "start Installation"
echo "start Installation" echo "finish Installation"
echo "finish Installation"
}
} }
stage('Build') { }
steps { stage('Build') {
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}" steps {
echo 'Building..' echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
echo 'Building..'
// sh 'docker build -t registry.proxyq.co/hellsos/website .' // sh 'docker build -t registry.proxyq.co/hellsos/website .'
}
} }
stage('Test') { }
steps { stage('Test') {
echo "start Testing" steps {
sh 'sleep 5' echo "start Testing"
echo "finish Testing" sh 'sleep 5'
} echo "finish Testing"
} }
stage('Deploy') { }
node { stage('Deploy') {
checkout scm 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()
} }
} }
} }