This commit is contained in:
50
Jenkinsfile
vendored
50
Jenkinsfile
vendored
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user