that expiriment failed, reverting
This commit is contained in:
parent
8f86d83732
commit
4b9592b0b0
@ -22,26 +22,31 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
steps {
|
stage ('Initalize Jenkins') {
|
||||||
script {
|
steps {
|
||||||
stage ('Initalize Jenkins') {
|
script {
|
||||||
workspace = pwd()
|
workspace = pwd()
|
||||||
ubiOS = ["8"]
|
ubiOS = ["8"]
|
||||||
ubiImages = ["ubi-minimal", "ubi"]
|
ubiImages = ["ubi-minimal", "ubi"]
|
||||||
|
|
||||||
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getLocalRootCA())
|
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getLocalRootCA())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (rhOS in ubiOS) {
|
stage ('Build Images') {
|
||||||
for (image in ubiImages) {
|
steps {
|
||||||
stage ("Build ubi${rhOS}:${image}") {
|
script {
|
||||||
def updateCmd
|
for (rhOS in ubiOS) {
|
||||||
if (image == "ubi-minimal") {
|
for (image in ubiImages) {
|
||||||
updateCmd = "microdnf"
|
stage ("Build ubi${rhOS}:${image}") {
|
||||||
} else {
|
def updateCmd
|
||||||
updateCmd = "dnf"
|
if (image == "ubi-minimal") {
|
||||||
}
|
updateCmd = "microdnf"
|
||||||
dockerFile = """FROM registry.access.redhat.com/ubi${rhOS}/${image}:latest
|
} else {
|
||||||
|
updateCmd = "dnf"
|
||||||
|
}
|
||||||
|
dockerFile = """FROM registry.access.redhat.com/ubi${rhOS}/${image}:latest
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors="The_Spider <spider@smoothnet.org>"
|
LABEL org.opencontainers.image.authors="The_Spider <spider@smoothnet.org>"
|
||||||
LABEL org.opencontainers.image.title="ubi${rhOS}/${image}"
|
LABEL org.opencontainers.image.title="ubi${rhOS}/${image}"
|
||||||
@ -54,19 +59,20 @@ RUN update-ca-trust extract && \\
|
|||||||
${updateCmd} update -y && \\
|
${updateCmd} update -y && \\
|
||||||
${updateCmd} clean all
|
${updateCmd} clean all
|
||||||
"""
|
"""
|
||||||
container ("kaniko") {
|
container ("kaniko") {
|
||||||
declarativeFunctions.buildContainerMultipleDestinations(
|
declarativeFunctions.buildContainerMultipleDestinations(
|
||||||
dockerFile: dockerFile,
|
dockerFile: dockerFile,
|
||||||
repositoryAccess: [
|
repositoryAccess: [
|
||||||
[
|
[
|
||||||
repository: repository,
|
repository: repository,
|
||||||
credentials: repositoryCreds
|
credentials: repositoryCreds
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
destination: [
|
||||||
destination: [
|
"${repository}/library/rhubi/${image}:${rhOS}",
|
||||||
"${repository}/library/rhubi/${image}:${rhOS}",
|
]
|
||||||
]
|
)
|
||||||
)
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -74,4 +80,4 @@ RUN update-ca-trust extract && \\
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user