add website.
Some checks failed
internetmastercz/test/pipeline/head There was a failure building this commit
Some checks failed
internetmastercz/test/pipeline/head There was a failure building this commit
This commit is contained in:
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@@ -1,18 +1,17 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
// stage('Init') {
|
||||
// steps {
|
||||
// sh 'node --version'
|
||||
// }
|
||||
// }
|
||||
stage('Installation') {
|
||||
steps {
|
||||
echo "start Installation"
|
||||
echo "finish Installation"
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
|
||||
echo 'Building..'
|
||||
sh 'ls -la /var/lib'
|
||||
sh 'whoami'
|
||||
sh 'docker info'
|
||||
// sh 'docker build -t registry.proxyq.co/hellsos/website .'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
@@ -23,8 +22,9 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo "Deploying.... ${env.ENV_REGISTRY_URL} - ${env.ENV_REGISTRY_USER}"
|
||||
docker.withRegistry("${env.ENV_REGISTRY_URL}", 'registry-credentials-id') {
|
||||
def customImage = docker.build("${env.ENV_REGISTRY_URL}/jenkins/website:${env.BUILD_ID}")
|
||||
customImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user