diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..554c1c2 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +node { + // Get the maven tool. + // ** NOTE: This 'M3' maven tool must be configured + // ** in the Jenkins global configuration. + def mvnHome = tool 'M3' + sh "echo ${mvnHome}" + + + // Mark the code checkout 'stage'.... + stage 'Checkout' + // Get some code from a GitHub repository + checkout scm + + // Mark the code build 'stage'.... + stage 'Build ajsc5' + // Run the maven build + //sh for unix bat for windows + + sh "${mvnHome}/bin/mvn -f saserverlibrary/pom.xml clean deploy" + + +} diff --git a/saserverlibrary/pom.xml b/saserverlibrary/pom.xml index b9f05ee..59094c7 100644 --- a/saserverlibrary/pom.xml +++ b/saserverlibrary/pom.xml @@ -23,11 +23,7 @@ 2.1.1 - - scm:git:ssh://git@codecloud.web.att.com:7999/st_2020int/saserverlibrary.git - scm:git:ssh://git@codecloud.web.att.com:7999/st_2020int/saserverlibrary.git - https://codecloud.web.att.com/scm/st_2020int/saserverlibrary.git - + @@ -191,8 +187,29 @@ org.codehaus.mojo cobertura-maven-plugin + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrhdme + https://oss.sonatype.org/ + true + + + + + ossrhdme + https://oss.sonatype.org/content/repositories/snapshots + + + ossrhdme + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + +