I have no idea if this will work

This commit is contained in:
Telesphoreo 2023-06-04 19:29:41 -05:00
parent 5ea4ed902f
commit b81bae46e1

6
Jenkinsfile vendored
View file

@ -17,6 +17,10 @@ pipeline {
withGradle { withGradle {
sh './gradlew createReobfPaperclipJar --no-daemon --refresh-dependencies' sh './gradlew createReobfPaperclipJar --no-daemon --refresh-dependencies'
} }
sh """
#!/bin/sh
mv \${WORKSPACE}/build/libs/Scissors-paperclip-*.jar scissors-\${BUILD_NUMBER}.jar
"""
} }
} }
stage('test') { stage('test') {
@ -48,7 +52,7 @@ pipeline {
} }
post { post {
always { 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-Server/build/test-results/test/*.xml'
junit 'Scissors-API/build/test-results/test/*.xml' junit 'Scissors-API/build/test-results/test/*.xml'
cleanWs() cleanWs()