diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..58099d91 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + tools { + gradle 'Gradle 7' + jdk 'Java 8' + } + options { + buildDiscarder(logRotator(artifactNumToKeepStr: '5')) + } + stages { + stage ('Build') { + steps { + sh 'git submodule update --init --recursive' + rtGradleRun( + usesPlugin: true, + tool: 'Gradle 7', + buildFile: 'build.gradle.kts', + tasks: 'clean build', + ) + } + post { + success { + archiveArtifacts artifacts: '**/build/libs/floodgate-*.jar', + excludes: '**/floodgate-parent-*.jar,**/floodgate-api.jar,**/floodgate-core.jar', + fingerprint: true + } + } + } + } +} \ No newline at end of file