Add Jenkins build pipeline
dustin/receipts/pipeline/head This commit looks good
Details
dustin/receipts/pipeline/head This commit looks good
Details
parent
a09de49fbe
commit
91e01614fb
|
@ -0,0 +1,25 @@
|
|||
@Library('containerimages')_
|
||||
buildContainerImage2()
|
||||
|
||||
def POD_YAML = '''
|
||||
spec:
|
||||
containers:
|
||||
- name: jnlp
|
||||
volumeMounts:
|
||||
- name: kubectl
|
||||
mountPath: /bin/kubectl
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: kubectl
|
||||
hostPath:
|
||||
path: /usr/bin/kubectl
|
||||
type: File
|
||||
'''
|
||||
|
||||
podTemplate(yaml: POD_YAML) {
|
||||
node(POD_LABEL) {
|
||||
stage('Deploy') {
|
||||
sh 'kubectl rollout restart deployment -n receipts receipts'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue