CarryOn/Jenkinsfile
2020-05-04 10:44:37 +02:00

25 lines
517 B
Groovy

#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('Clean') {
steps {
echo 'Cleaning Project'
sh 'chmod +x gradlew'
sh './gradlew clean'
}
}
stage('Build and Deploy') {
steps {
echo 'Building and Deploying to Maven'
sh './gradlew build publish'
}
}
}
post {
always {
archive 'build/libs/**.jar'
}
}
}