switches to declarative syntax
This commit is contained in:
parent
a45a7dd617
commit
4e247ed59e
@ -3,14 +3,15 @@ def repositoryCreds = "harbor-repository-creds"
|
|||||||
|
|
||||||
def workspace
|
def workspace
|
||||||
def latestTag
|
def latestTag
|
||||||
def label = "kubernetes-${UUID.randomUUID().toString()}"
|
|
||||||
def templateName = "pipeline-worker"
|
|
||||||
def outputFile
|
def outputFile
|
||||||
|
|
||||||
podTemplate(
|
def label = "kubernetes-${UUID.randomUUID().toString()}"
|
||||||
label: label,
|
def templateName = "pipeline-worker"
|
||||||
name: templateName,
|
|
||||||
yaml: functions.podYaml(
|
pipeline {
|
||||||
|
agent {
|
||||||
|
kubernetes{
|
||||||
|
yaml functions.podYaml(
|
||||||
repo: repository,
|
repo: repository,
|
||||||
templateName: templateName,
|
templateName: templateName,
|
||||||
alpine: true,
|
alpine: true,
|
||||||
@ -22,8 +23,10 @@ podTemplate(
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
) {
|
}
|
||||||
node (label) {
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
stage ('Initalize Jenkins') {
|
stage ('Initalize Jenkins') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
@ -63,6 +66,7 @@ podTemplate(
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage ("Clone Signal") {
|
stage ("Clone Signal") {
|
||||||
|
steps {
|
||||||
dir("signal-desktop") {
|
dir("signal-desktop") {
|
||||||
checkout ([
|
checkout ([
|
||||||
$class: "GitSCM",
|
$class: "GitSCM",
|
||||||
@ -90,8 +94,10 @@ podTemplate(
|
|||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage ("Build Signal") {
|
stage ("Build Signal") {
|
||||||
|
steps {
|
||||||
container ("node-18") {
|
container ("node-18") {
|
||||||
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getCurrentRootCA())
|
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getCurrentRootCA())
|
||||||
sh """
|
sh """
|
||||||
@ -113,7 +119,10 @@ podTemplate(
|
|||||||
).trim()
|
).trim()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage ('Push Artifacts') {
|
||||||
|
steps {
|
||||||
functions.pushArtifact(
|
functions.pushArtifact(
|
||||||
repoCreds: "nexus-generic-upload-bot",
|
repoCreds: "nexus-generic-upload-bot",
|
||||||
fileName: outputFile,
|
fileName: outputFile,
|
||||||
@ -122,3 +131,5 @@ podTemplate(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user