adds stages
This commit is contained in:
parent
b0d9923b8b
commit
b5545c64ca
@ -34,6 +34,7 @@ spec:
|
||||
|
||||
def deletePod (Map config) {
|
||||
def ws = pwd()
|
||||
stage ("Delete Pod") {
|
||||
container ("alpine") {
|
||||
sh """
|
||||
apk add --no-cache curl
|
||||
@ -50,9 +51,11 @@ def deletePod (Map config) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def buildContainer (Map config) {
|
||||
def ws = pwd()
|
||||
stage ("Build Container") {
|
||||
container ("kaniko") {
|
||||
writeFile (file: ws + "/Dockerfile", text: config.dockerFile)
|
||||
withCredentials([usernameColonPassword(
|
||||
@ -69,3 +72,4 @@ def buildContainer (Map config) {
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user