diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..5b458b1e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,25 @@ +#!/usr/bin/env groovy +node('linux && maven && gpg') { + ansiColor('xterm') { + stage('Checkout') { + checkout([ + $class : 'GitSCM', + branches : [ + [ + name: env.BRANCH + ] + ], + userRemoteConfigs: [ + [ + credentialsId: 'f652697e-beb7-4724-b1b5-4913a2bf45f5', + url : 'git@github.com:bitbar/testdroid-api.git' + ] + ] + ]) + } + + stage('Build') { + sh('mvn clean package source:jar javadoc:jar gpg:sign deploy:deploy -DaltDeploymentRepository=ossrh::default::https://oss.sonatype.org/service/local/staging/deploy/maven2/') + } + } +} diff --git a/pom.xml b/pom.xml index d4a1ba52..b500d8de 100644 --- a/pom.xml +++ b/pom.xml @@ -1,11 +1,9 @@ - - 4.0.0 com.testdroid testdroid-api - 2.67 + 2.67.1 jar Testdroid API v2 https://github.com/bitbar/testdroid-api @@ -14,14 +12,13 @@ UTF-8 2.9.6 - 1.7.25 - 5.3.1 - 2.6 - 3.8.1 - 4.5.6 - 1.26.0 + 1.7.13 + 5.2.0 + 2.5 + 3.3.2 + 4.5.2 + 1.25.0 2.0.0.0 - 2.22.1 scm:git:git://github.com:bitbar/testdroid-api.git @@ -54,13 +51,22 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.0 + 3.2 1.8 1.8 true + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.1 + + + false + + maven-assembly-plugin 3.1.0 @@ -81,29 +87,21 @@ org.apache.maven.plugins - maven-surefire-plugin + maven-gpg-plugin - -Djdk.net.URLClassPath.disableClassPathURLCheck=true + + --pinentry-mode + loopback + org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - --pinentry-mode - loopback - - - - + maven-javadoc-plugin + 3.0.0 + + -Xdoclint:none + @@ -161,10 +159,5 @@ ${hamcrest.version} test - - org.apache.maven.surefire - surefire-booter - ${surefire.booter.version} -