diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0847fef --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + options { + buildDiscarder(logRotator(numToKeepStr: '5')) + } + stages { + stage('Build') { + agent { + label 'linux' + } + steps { + echo 'Building..' + script { + sh ''' + #!/bin/bash + + chmod +x gradlew + ./gradlew clean build + ''' + } + } + + post { + always { + archiveArtifacts artifacts: 'build/libs/*.jar' + } + } + } + } +} \ No newline at end of file