From b81bae46e1f44214b796a4a441b5dce0d7390e21 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Sun, 4 Jun 2023 19:29:41 -0500 Subject: [PATCH] I have no idea if this will work --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c6e3fd2..754e347 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,6 +17,10 @@ pipeline { withGradle { sh './gradlew createReobfPaperclipJar --no-daemon --refresh-dependencies' } + sh """ + #!/bin/sh + mv \${WORKSPACE}/build/libs/Scissors-paperclip-*.jar scissors-\${BUILD_NUMBER}.jar + """ } } stage('test') { @@ -48,7 +52,7 @@ pipeline { } post { always { - archiveArtifacts artifacts: 'build/libs/Scissors-paperclip-*.jar', fingerprint: true + archiveArtifacts artifacts: 'build/libs/scissors-${BUILD_NUMBER}.jar', fingerprint: true junit 'Scissors-Server/build/test-results/test/*.xml' junit 'Scissors-API/build/test-results/test/*.xml' cleanWs()