This commit is contained in:
52
Jenkinsfile
vendored
52
Jenkinsfile
vendored
@@ -1,24 +1,36 @@
|
|||||||
node {
|
pipeline {
|
||||||
|
|
||||||
stage('Installation') {
|
agent { dockerfile true }
|
||||||
echo "start Installation"
|
|
||||||
echo "finish Installation"
|
stages {
|
||||||
}
|
stage('Installation') {
|
||||||
stage('Build') {
|
steps {
|
||||||
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
|
echo "start Installation"
|
||||||
echo 'Building..'
|
echo "finish Installation"
|
||||||
// sh 'docker build -t registry.proxyq.co/hellsos/website .'
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
stage('Build') {
|
||||||
echo "start Testing"
|
steps {
|
||||||
sh 'sleep 5'
|
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
|
||||||
echo "finish Testing"
|
echo 'Building..'
|
||||||
}
|
sh 'docker build -t registry.proxyq.co/cd/website .'
|
||||||
stage('Deploy') {
|
}
|
||||||
echo "${env.ENV_REGISTRY_URL}"
|
}
|
||||||
docker.withRegistry("https://registry.proxyq.co", 'registry-credentials-id') {
|
stage('Test') {
|
||||||
def customImage = docker.build("registry.proxyq.co/jenkins/website:${env.BUILD_ID}", '.')
|
steps {
|
||||||
customImage.push()
|
echo "start Testing"
|
||||||
|
sh 'sleep 5'
|
||||||
|
echo "finish Testing"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
|
echo "${env.ENV_REGISTRY_URL}"
|
||||||
|
// docker.withRegistry("https://registry.proxyq.co", 'registry-credentials-id') {
|
||||||
|
// def customImage = docker.build("registry.proxyq.co/jenkins/website:${env.BUILD_ID}", '.')
|
||||||
|
// customImage.push()
|
||||||
|
// }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user