Scissors/Jenkinsfile

40 lines
1.0 KiB
Groovy

pipeline {
agent any
environment {
GITHUB_BRANCH = "${BRANCH_NAME}"
}
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
}
stages {
stage('applyPatches') {
steps {
withGradle {
sh './gradlew applyPatches --no-daemon'
}
}
}
stage('paperclipJar') {
steps {
withGradle {
sh './gradlew paperclipJar --no-daemon'
}
}
}
stage('test') {
steps {
withGradle {
sh './gradlew test --no-daemon'
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true
junit 'Scissors-Server/build/test-results/test/*.xml'
junit 'Scissors-API/build/test-results/test/*.xml'
cleanWs()
}
}
}