Added Jenkinsfile 4
This commit is contained in:
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -48,20 +48,24 @@ node {
|
||||
|
||||
}
|
||||
|
||||
/*stage('Build Docker'){
|
||||
stage('Build Docker'){
|
||||
|
||||
sh './dockerBuild.sh'
|
||||
def customImage = docker.build("web/wannistesvorbei:${env.BRANCH_NAME}-${env.GIT_COMMIT}")
|
||||
}
|
||||
|
||||
stage('Deploy'){
|
||||
|
||||
echo 'Push to Repo'
|
||||
sh './dockerPushToRepo.sh'
|
||||
docker.withRegistry('https://docker.sebse.de', 'docker-registry-robot') {
|
||||
|
||||
echo 'ssh to web server and tell it to pull new image'
|
||||
sh 'ssh deploy@xxxxx.xxxxx.com running/xxxxxxx/dockerRun.sh'
|
||||
/* Push the container to the custom Registry */
|
||||
customImage.push()
|
||||
}
|
||||
|
||||
}*/
|
||||
/*echo 'ssh to web server and tell it to pull new image'
|
||||
sh 'ssh deploy@xxxxx.xxxxx.com running/xxxxxxx/dockerRun.sh'*/
|
||||
|
||||
}
|
||||
|
||||
stage('Cleanup'){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user