Fixed Jenkinsfile
All checks were successful
Locusworks Team/arg-parser/pipeline/head This commit looks good
All checks were successful
Locusworks Team/arg-parser/pipeline/head This commit looks good
This commit is contained in:
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -108,17 +108,18 @@ def getSha1() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def mvn(args) {
|
def mvn(args) {
|
||||||
// add node and maven tools to path before calling maven
|
withMaven(
|
||||||
def mvnHome = tool name: 'maven-3.6.1'
|
maven: 'maven-3.6.1',
|
||||||
env.PATH = "${mvnHome}/bin:${env.PATH}"
|
globalMavenSettingsConfig: 'locusworks-settings'
|
||||||
|
) {
|
||||||
|
|
||||||
sh "mvn ${args}"
|
sh "mvn ${args}"
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def mvn_initial(args) {
|
def mvn_initial(args) {
|
||||||
// add node and maven tools to path before calling maven
|
mvn(args)
|
||||||
def mvnHome = tool name: 'maven-3.6.1'
|
|
||||||
env.PATH = "${mvnHome}/bin:${env.PATH}"
|
|
||||||
sh "mvn ${args}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def set_result(status) {
|
def set_result(status) {
|
||||||
|
41
pom.xml
41
pom.xml
@ -12,7 +12,7 @@
|
|||||||
<main.basedir>${project.basedir}</main.basedir>
|
<main.basedir>${project.basedir}</main.basedir>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
<nexus.repo>http://nexus.locusworks.net</nexus.repo>
|
<nexus.repo>https://nexus.locusworks.net</nexus.repo>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@ -48,19 +48,6 @@
|
|||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>nexus-proxy-public</id>
|
|
||||||
<url>${nexus.repo}/repository/maven-public/</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
<pluginRepositories>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>nexus-proxy-public</id>
|
|
||||||
<url>${nexus.repo}/repository/maven-public/</url>
|
|
||||||
</pluginRepository>
|
|
||||||
</pluginRepositories>
|
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
<id>nexus-snapshot</id>
|
<id>nexus-snapshot</id>
|
||||||
@ -72,4 +59,30 @@
|
|||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>locusworks-public</id>
|
||||||
|
<name>locusworks-public</name>
|
||||||
|
<url>${nexus.repo}/repository/locusworks-public/</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
|
||||||
|
<pluginRepositories>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>locusworks-public</id>
|
||||||
|
<url>${nexus.repo}/repository/locusworks-public/</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</pluginRepository>
|
||||||
|
</pluginRepositories>
|
||||||
</project>
|
</project>
|
Reference in New Issue
Block a user