2022-04-04 18:21:20 -04:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2022-04-22 04:26:08 -04:00
|
|
|
environment {
|
|
|
|
GITHUB_BRANCH = "${BRANCH_NAME}"
|
|
|
|
}
|
2022-04-04 18:21:20 -04:00
|
|
|
stages {
|
2022-04-07 17:07:56 -04:00
|
|
|
stage('applyPatches') {
|
2022-04-04 18:21:20 -04:00
|
|
|
steps {
|
2022-04-07 01:05:56 -04:00
|
|
|
withGradle {
|
2022-06-26 23:47:49 -04:00
|
|
|
sh './gradlew applyPatches --no-daemon --refresh-dependencies'
|
2022-04-07 17:07:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('paperclipJar') {
|
|
|
|
steps {
|
|
|
|
withGradle {
|
2022-06-26 23:47:49 -04:00
|
|
|
sh './gradlew paperclipJar --no-daemon --refresh-dependencies'
|
2022-04-07 01:05:56 -04:00
|
|
|
}
|
2023-06-04 22:38:37 -04:00
|
|
|
sh """
|
|
|
|
#!/bin/sh
|
2023-07-01 16:34:20 -04:00
|
|
|
BRANCH=\$(echo "\${BRANCH_NAME}" | sed 's/\\//_/g')
|
|
|
|
mv \${WORKSPACE}/build/libs/Scissors-*.jar \${WORKSPACE}/build/libs/scissors-\${BRANCH}-\${BUILD_NUMBER}.jar
|
2023-06-04 22:38:37 -04:00
|
|
|
"""
|
2022-04-04 18:21:20 -04:00
|
|
|
}
|
|
|
|
}
|
2022-04-14 21:32:26 -04:00
|
|
|
stage('test') {
|
|
|
|
steps {
|
|
|
|
withGradle {
|
|
|
|
sh './gradlew test --no-daemon'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-15 22:06:41 -04:00
|
|
|
}
|
|
|
|
post {
|
2022-04-04 18:21:20 -04:00
|
|
|
always {
|
2023-03-15 22:46:37 -04:00
|
|
|
archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true
|
2022-04-14 21:32:26 -04:00
|
|
|
junit 'Scissors-Server/build/test-results/test/*.xml'
|
|
|
|
junit 'Scissors-API/build/test-results/test/*.xml'
|
2022-04-14 21:40:24 -04:00
|
|
|
cleanWs()
|
2022-04-04 18:21:20 -04:00
|
|
|
}
|
|
|
|
}
|
2023-03-15 17:06:03 -04:00
|
|
|
}
|