Skip to content

Commit

Permalink
Remove hashbang from examples
Browse files Browse the repository at this point in the history
Not needed anymore since jenkinsci#490
  • Loading branch information
Vlatombe committed Sep 12, 2019
1 parent 24a0485 commit 840086a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions examples/kaniko-declarative.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ spec:
}
steps {
git 'https://github.com/jenkinsci/docker-jnlp-slave.git'
container(name: 'kaniko', shell: '/busybox/sh') {
sh '''#!/busybox/sh
/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --insecure --skip-tls-verify --cache=true --destination=mydockerregistry:5000/myorg/myimage
'''
container('kaniko') {
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --insecure --skip-tls-verify --cache=true --destination=mydockerregistry:5000/myorg/myimage'
}
}
}
Expand Down
6 changes: 2 additions & 4 deletions examples/kaniko-gcr.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ spec:
node(POD_LABEL) {
stage('Build with Kaniko') {
git 'https://github.com/jenkinsci/docker-jnlp-slave.git'
container(name: 'kaniko', shell: '/busybox/sh') {
container('kaniko') {
withEnv(['PATH+EXTRA=/busybox:/kaniko']) {
sh '''#!/busybox/sh
/kaniko/executor -c `pwd` --cache=true --destination=gcr.io/myprojectid/myimage
'''
sh '/kaniko/executor -c `pwd` --cache=true --destination=gcr.io/myprojectid/myimage'
}
}
}
Expand Down
6 changes: 2 additions & 4 deletions examples/kaniko.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@ spec:
node(POD_LABEL) {
stage('Build with Kaniko') {
git 'https://github.com/jenkinsci/docker-jnlp-slave.git'
container(name: 'kaniko', shell: '/busybox/sh') {
container(name: 'kaniko') {
withEnv(['PATH+EXTRA=/busybox:/kaniko']) {
sh '''#!/busybox/sh
/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --insecure --skip-tls-verify --cache=true --destination=mydockerregistry:5000/myorg/myimage
'''
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --insecure --skip-tls-verify --cache=true --destination=mydockerregistry:5000/myorg/myimage'
}
}
}
Expand Down

0 comments on commit 840086a

Please sign in to comment.