From 772d7a83084b53956238bd1162e6d88f58a41515 Mon Sep 17 00:00:00 2001 From: Patrick Reinhart Date: Mon, 6 Nov 2023 17:15:27 +0100 Subject: [PATCH] Adding product version and fingerprints (#52) * Rename product files to include the version Signed-off-by: Patrick Reinhart * Adds fingerprints to archived artifacts Signed-off-by: Patrick Reinhart --------- Signed-off-by: Patrick Reinhart --- Jenkinsfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0a7fcef..1334517 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -90,7 +90,16 @@ pipeline { post { always { junit '**/target/surefire-reports/TEST-*.xml' - archiveArtifacts artifacts: 'target/products/org.openjdk.jmc-*', followSymlinks: false + dir('target/products') { + sh "mv -f org.openjdk.jmc-linux.gtk.aarch64.tar.gz org.openjdk.jmc-${jmcVersion}-linux.gtk.aarch64.tar.gz" + sh "mv -f org.openjdk.jmc-linux.gtk.x86_64.tar.gz org.openjdk.jmc-${jmcVersion}-linux.gtk.x86_64.tar.gz" + sh "mv -f org.openjdk.jmc-macosx.cocoa.aarch64.tar.gz org.openjdk.jmc-${jmcVersion}-macosx.cocoa.aarch64.tar.gz" + sh "mv -f org.openjdk.jmc-macosx.cocoa.x86_64.tar.gz org.openjdk.jmc-${jmcVersion}-macosx.cocoa.x86_64.tar.gz" + sh "mv -f org.openjdk.jmc-win32.win32.x86_64.zip org.openjdk.jmc-${jmcVersion}-win32.win32.x86_64.zip" + } + archiveArtifacts artifacts: 'agent/target/agent-*', fingerprint: true + archiveArtifacts artifacts: 'application/org.openjdk.jmc.updatesite.ide/target/*.zip', fingerprint: true + archiveArtifacts artifacts: 'target/products/org.openjdk.jmc-*', fingerprint: true } // send a mail on unsuccessful and fixed builds unsuccessful { // means unstable || failure || aborted