This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -18,7 +18,8 @@ pipeline {
|
|||||||
steps {
|
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/jenkins/website:${env.BUILD_ID} .'
|
echo "docker build -t registry.proxyq.co/jenkins/website:${env.BUILD_ID} ."
|
||||||
|
sh "docker build -t registry.proxyq.co/jenkins/website:${env.BUILD_ID} ."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
@@ -31,8 +32,8 @@ pipeline {
|
|||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
echo "${env.ENV_REGISTRY_URL}"
|
echo "${env.ENV_REGISTRY_URL}"
|
||||||
sh 'docker login https://registry.proxyq.co -u ${REGISTRY_CREDENTIALS_USR} -p ${REGISTRY_CREDENTIALS_PSW}'
|
sh "docker login https://registry.proxyq.co -u ${REGISTRY_CREDENTIALS_USR} -p ${REGISTRY_CREDENTIALS_PSW}"
|
||||||
sh 'docker push registry.proxyq.co/jenkins/website:${env.BUILD_ID}'
|
sh "docker push registry.proxyq.co/jenkins/website:${env.BUILD_ID}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user