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'){
|
stage('Deploy'){
|
||||||
|
|
||||||
echo 'Push to Repo'
|
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'
|
/* Push the container to the custom Registry */
|
||||||
sh 'ssh deploy@xxxxx.xxxxx.com running/xxxxxxx/dockerRun.sh'
|
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'){
|
stage('Cleanup'){
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user