Adding Jenkinsfile based on script in Jenkins Change-Id: I1a0838b0965c3b0b0c7981e1bfd7be89c6bad92d Reviewed-on: https://git.eclipse.org/r/c/linuxtools/org.eclipse.linuxtools.eclipse-build/+/187564 Tested-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/flatpak-dev-shim/Jenkinsfile b/flatpak-dev-shim/Jenkinsfile new file mode 100644 index 0000000..9c1018a --- /dev/null +++ b/flatpak-dev-shim/Jenkinsfile
@@ -0,0 +1,41 @@ +pipeline { + options { + timeout(time: 60, unit: 'MINUTES') + buildDiscarder(logRotator(numToKeepStr:'10')) + } + agent { + kubernetes { + label 'centos-7' + } + } + tools { + maven 'apache-maven-latest' + jdk 'openjdk-jdk15-latest' + } + stages { + stage('clone repo') { + steps { + git branch: 'master', url: 'git://git.eclipse.org/gitroot/linuxtools/org.eclipse.linuxtools.eclipse-build.git' + } + } + stage('Build') { + steps { + dir('flatpak-dev-shim') { + sh "mvn clean verify -B -Dmaven.test.skip=true" + } + } + post { + always { + archiveArtifacts artifacts: 'flatpak-dev-shim/target/**' + } + } + } + stage('Deploy') { + steps { + dir('flatpak-dev-shim') { + sh "mvn deploy -B -Dmaven.test.skip=true" + } + } + } + } +} \ No newline at end of file