Scissors/Jenkinsfile

47 lines
1.2 KiB
Text
Raw Normal View History

2022-04-04 18:21:20 -04:00
pipeline {
agent any
environment {
2022-04-22 04:09:31 -04:00
GITHUB_BRANCH = "${BRANCH_NAME}"
}
2022-04-10 17:54:42 -04:00
options {
2022-04-10 17:58:49 -04:00
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
2022-04-10 17:54:42 -04:00
}
2022-04-04 18:21:20 -04:00
stages {
2022-06-13 22:25:53 -04:00
stage('cleanCache') {
steps {
withGradle {
sh './gradlew cleanCache'
}
}
}
stage('applyPatches') {
2022-04-04 18:21:20 -04:00
steps {
2022-04-07 01:05:56 -04:00
withGradle {
sh './gradlew applyPatches --refresh-dependencies'
}
}
}
stage('paperclipJar') {
steps {
withGradle {
sh './gradlew createReobfPaperclipJar --refresh-dependencies'
2022-04-07 01:05:56 -04:00
}
2022-04-04 18:21:20 -04:00
}
}
2022-04-14 21:32:26 -04:00
stage('test') {
steps {
withGradle {
2022-06-13 22:25:53 -04:00
sh './gradlew test'
2022-04-14 21:32:26 -04:00
}
}
}
2022-04-04 18:21:20 -04:00
}
post {
always {
2022-04-19 20:38:51 -04:00
archiveArtifacts artifacts: 'build/libs/Scissors-paperclip-*.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
}
}
}