Replace all single quotes
This commit is contained in:
parent
8715f9e38c
commit
29ecee0a20
1 changed files with 7 additions and 8 deletions
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -2,31 +2,30 @@ pipeline {
|
|||
agent any
|
||||
|
||||
stages {
|
||||
stage('Pull git') {
|
||||
stage("Pull git") {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Docker Image') {
|
||||
stage("Build Docker Image") {
|
||||
steps {
|
||||
script {
|
||||
def dockerImage = docker.build('git.thisfro.ch/jenkinsci/pflaenzli', '-f Dockerfile . --tag git.thisfro.ch/jenkinsci/pflaenzli:${BUILD_NUMBER} --tag git.thisfro.ch/jenkinsci/pflaenzli:latest')
|
||||
def dockerImage = docker.build("git.thisfro.ch/jenkinsci/pflaenzli", "-f Dockerfile . --tag git.thisfro.ch/jenkinsci/pflaenzli:${BUILD_NUMBER} --tag git.thisfro.ch/jenkinsci/pflaenzli:latest")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Push Docker Image') {
|
||||
stage("Push Docker Image") {
|
||||
steps {
|
||||
script {
|
||||
sh 'echo "git.thisfro.ch/jenkinsci/pflaenzli:${BUILD_NUMBER}"'
|
||||
def numberTagImage = docker.image("git.thisfro.ch/jenkinsci/pflaenzli:${BUILD_NUMBER}")
|
||||
docker.withRegistry('https://git.thisfro.ch', 'jenkins-ci') {
|
||||
docker.withRegistry("https://git.thisfro.ch", "jenkins-ci") {
|
||||
numberTagImage.push()
|
||||
}
|
||||
|
||||
def latestTagImage = docker.image('git.thisfro.ch/jenkinsci/pflaenzli:latest')
|
||||
docker.withRegistry('https://git.thisfro.ch', 'jenkins-ci') {
|
||||
def latestTagImage = docker.image("git.thisfro.ch/jenkinsci/pflaenzli:latest")
|
||||
docker.withRegistry("https://git.thisfro.ch", "jenkins-ci") {
|
||||
latestTagImage.push()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue