diff options
| author | 2026-08-30 13:29:59 +0700 | |
|---|---|---|
| committer | 2026-08-30 15:10:27 +0700 | |
| commit | 1075e725492e482d826bfcf222e6f2f6644f5d4b (patch) | |
| tree | a15efca02391abf49e07c6fbfb914bd9948fd78c | |
| parent | 969aa4398395d25dd88d017d77bbceaed9589e54 (diff) | |
| download | kiwi-descriptions-1075e725492e482d826bfcf222e6f2f6644f5d4b.tar.gz kiwi-descriptions-1075e725492e482d826bfcf222e6f2f6644f5d4b.zip | |
feat: test push stage for stashing correct output isof45
| -rw-r--r-- | Jenkinsfile | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index b981778..24aa17a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,11 +9,12 @@ pipeline { KIWI_FILE = 'Fedora.kiwi' IMAGE_TYPE = 'iso' IMAGE_PROFILE = 'Workstation-Live' + IMAGE_VERSION = '45' OUTPUT_DIR = 'outdir' } stages { - stage('Build Fedora Workstation (ARM64)') { + stage('Build Fedora Workstation Live ISO (ARM64)') { agent { kubernetes { defaultContainer 'kiwi' @@ -69,6 +70,44 @@ spec: throw e } } + stash name: "fedora-workstation-live-iso-stash", includes: "${OUTPUT_DIR}-build/Fedora.aarch64-${IMAGE_VERSION}.iso" + } + } + } + + stage('Push Fedora Workstation Live ISO (ARM64)') { + agent { + kubernetes { + defaultContainer 's5cmd' + yaml """ +apiVersion: v1 +kind: Pod +metadata: + namespace: jenkins +spec: + containers: + - name: s5cmd + image: peakcom/s5cmd:v2.3.0 + imagePullPolicy: IfNotPresent + command: [ 'sleep' ] + args: [ 'infinity' ] + tty: true + resources: + requests: + cpu: "0.5" + memory: 4Gi +""" + } + } + steps { + container('s5cmd') { + unstash "fedora-workstation-live-iso-stash" + 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 + ''' } } } |