-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,7 @@ | |
<version.war.plugin>2.1.1</version.war.plugin> | ||
</properties> | ||
|
||
<scm> | ||
<connection>scm:git:ssh://[email protected]:7999/st_2020int/saserverlibrary.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]:7999/st_2020int/saserverlibrary.git</developerConnection> | ||
<url>https://codecloud.web.att.com/scm/st_2020int/saserverlibrary.git</url> | ||
</scm> | ||
|
||
|
||
<dependencies> | ||
<dependency> | ||
|
@@ -191,8 +187,29 @@ | |
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>cobertura-maven-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.6.7</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>ossrhdme</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrhdme</id> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrhdme</id> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
</project> |