Index: Jenkinsfile =================================================================== diff -u --- Jenkinsfile (revision 0) +++ Jenkinsfile (revision 7018094d0e4616efad128841a3f614fd2dd61e29) @@ -0,0 +1,26 @@ +pipeline { + agent any + options { + buildDiscarder logRotator(numToKeepStr: '4') + } + tools { + gradle 'Gradle-6.9' + jdk 'jdk-8' + } + stages { + stage ('Build') { + steps { + checkout scm + sh "gradle -Dgrails.env=production --no-daemon clean" + //sh "gradle -Dgrails.env=test --no-daemon check" + sh "gradle -Dgrails.env=production --no-daemon assemble --refresh-dependencies" + } + post { + success { + // The artifact is named $project.projectDir which could be any number of things on Jenkins + archiveArtifacts(artifacts: "build/libs/*.jar", fingerprint: true) + } + } + } + } +} \ No newline at end of file