aboutsummaryrefslogtreecommitdiffci
path: root/Jenkinsfile
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile65
1 files changed, 7 insertions, 58 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 4b18f35..24aa17a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -3,8 +3,6 @@ pipeline {
options {
timestamps()
- preserveStashes()
- buildDiscarder(logRotator(daysToKeepStr: '7'))
}
environment {
@@ -13,19 +11,6 @@ pipeline {
IMAGE_PROFILE = 'Workstation-Live'
IMAGE_VERSION = '45'
OUTPUT_DIR = 'outdir'
-
- B2_ENDPOINT = 'https://s3.eu-central-003.backblazeb2.com'
- AWS_DEFAULT_REGION = 'eu-central-003'
- ISO_BUCKET = 'dist-sayagit-fedora-iso'
-
- // Must match the <source path="..."/> in
- // repositories/kernel-sp12in.xml.
- KERNEL_SURFACE_REPO_URL = 'https://rpm.sayag.it/kernel-sp12in/fedora/45/aarch64'
-
- // awscli2 sends CRC32 checksums by default, which B2 rejects. Ask for
- // them only where the S3 API requires them.
- AWS_REQUEST_CHECKSUM_CALCULATION = 'when_required'
- AWS_RESPONSE_CHECKSUM_VALIDATION = 'when_required'
}
stages {
@@ -43,7 +28,7 @@ spec:
kubernetes.io/arch: arm64
containers:
- name: kiwi
- image: fedora:45
+ image: fedora:44
imagePullPolicy: Always
command: [ 'sleep' ]
args: [ 'infinity' ]
@@ -66,27 +51,6 @@ spec:
container('kiwi') {
script {
try {
- // The kernel-surface RPM is a build input, not
- // something this repository can produce: the image
- // installs kernel-surface by name and <ignore>s
- // Fedora's kernel packages. Its pipeline publishes
- // it to rpm.sayag.it, which repositories/kernel-sp12in.xml
- // points at directly, so there is nothing to stage
- // here. Fail now rather than several minutes into
- // kiwi on an unresolvable package name.
- sh '''
- set -eux
-
- dnf --assumeyes install curl
-
- repomd="${KERNEL_SURFACE_REPO_URL}/repodata/repomd.xml"
- if ! curl -fsS --retry 3 -o /dev/null "${repomd}"; then
- echo "No kernel-surface repository at ${repomd}." >&2
- echo "Run the kernel-surface pipeline for Fedora ${IMAGE_VERSION} first." >&2
- exit 1
- fi
- '''
-
sh '''
dnf --assumeyes install git kiwi kiwi-systemdeps distribution-gpg-keys
git config --global --add safe.directory .
@@ -138,27 +102,12 @@ spec:
steps {
container('s5cmd') {
unstash "fedora-workstation-live-iso-stash"
- withCredentials([usernamePassword(
- credentialsId: 'backblaze-b2-dist-iso',
- usernameVariable: 'AWS_ACCESS_KEY_ID',
- passwordVariable: 'AWS_SECRET_ACCESS_KEY')]) {
- sh '''
- set -eux
-
- cd "${OUTPUT_DIR}-build"
- src="Fedora.aarch64-${IMAGE_VERSION}.iso"
- moddate=$(date -r "${src}" -u +"%Y%m%d-%H%M%S")
- dst="Fedora.Surface-Pro-12in.${IMAGE_PROFILE}.${IMAGE_VERSION}.${moddate}.aarch64.iso"
- mv "${src}" "${dst}"
- ls -lh
-
- /s5cmd --endpoint-url "${B2_ENDPOINT}" --log debug cp \\
- --content-type "application/x-iso9660-image" \\
- --show-progress \\
- "${dst}" \\
- "s3://${ISO_BUCKET}/fedora/${IMAGE_VERSION}/aarch64/${dst}"
- '''
- }
+ sh '''
+ cd ${OUTPUT_DIR}-build
+ moddate=$(date -r Fedora.aarch64-${IMAGE_VERSION}.iso -u +"%Y%m%d-%H%M%S")
+ mv Fedora.aarch64-${IMAGE_VERSION}.iso "Fedora.Surface-Pro-12in.${IMAGE_PROFILE}.${IMAGE_VERSION}.${moddate}.aarch64.iso"
+ ls -lh
+ '''
}
}
}