Commit 50a8d4f1 authored by Josh Steinberg's avatar Josh Steinberg

update jenkins

parent 451bd1f2
pipeline {
agent {
kubernetes {
//cloud 'kubernetes'
defaultContainer 'kaniko'
yaml '''
kind: Pod
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:latest
imagePullPolicy: Always
command:
- sleep
args:
- 99d
'''
}
}
agent any
tools{
maven 'maven'
}
......@@ -91,19 +73,7 @@ pipeline {
}
}
}
stage("Pull Artifact and Build Container"){
steps{
container(name: 'kaniko', shell: '/busybox/sh'){
sh "pwd"
sh "ls"
sh '''#!/busybox/sh
/kaniko/executor -f `pwd`/Dockerfile `pwd` --insecure --skip-tls-verify --cache=true --destination=10.20.3.15:8081/jenkins-docker/hello-world:latest'
'''
}
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment