feature/Feature-1 #4

Merged
jakub merged 39 commits from feature/Feature-1 into master 2021-10-20 15:40:59 +00:00
Showing only changes of commit 788feff855 - Show all commits

9
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 {
checkout scm
docker.withRegistry("${env.ENV_REGISTRY_URL}", 'registry-credentials-id') { docker.withRegistry("${env.ENV_REGISTRY_URL}", 'registry-credentials-id') {
def customImage = docker.build("${env.ENV_REGISTRY_URL}/jenkins/website:${env.BUILD_ID}") def customImage = docker.build("${env.ENV_REGISTRY_URL}/jenkins/website:${env.BUILD_ID}")
customImage.push() customImage.push()
} }
} }
} }
}