1
0

Update Jenkinsfile and pom.xml

This commit is contained in:
Andrea Cavalli 2020-10-07 03:00:19 +02:00
parent 7bb3b2e7ed
commit 3bb0790197
2 changed files with 15 additions and 17 deletions

20
Jenkinsfile vendored
View File

@ -25,8 +25,8 @@ pipeline {
sh "mkdir -p \"/var/jenkins_cache/.ccache\""
sh "chown 1000:1000 -R \"/var/jenkins_cache/.ccache\""
sh "mkdir -p \"${workspace}/tdlight-java/src/main\""
sh "chown 1000:1000 -R \"${workspace}\""
sh "chmod 771 -R \"${workspace}\""
//sh "chown 1000:1000 -R \"${workspace}\""
//sh "chmod 771 -R \"${workspace}\""
}
}
@ -70,7 +70,9 @@ pipeline {
expression { params.RELEASE }
}
steps {
sh "mvn -s $MVN_SET -DpushChanges=false -DpreparationGoals=initialize release:prepare release:perform -B"
sh "git config user.email \"jenkins@mchv.eu\""
sh "git config user.name \"Jenkins\""
sh "mvn -s $MVN_SET -DpushChanges=false -DlocalCheckout=true -DpreparationGoals=initialize release:prepare release:perform -B"
}
}
stage('Deliver') {
@ -88,17 +90,7 @@ pipeline {
}
post {
always {
dir("${workspace}/tdlight-java") {
deleteDir()
}
/* clean up tmp directory */
dir("${workspace}@tmp") {
deleteDir()
}
/* clean up script directory */
dir("${workspace}@script") {
deleteDir()
}
deleteDir()
}
}
}

12
pom.xml
View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>it.tdlight</groupId>
<artifactId>tdlight-natives-linux-amd64</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2-SNAPSHOT</version>
<name>TDLight Natives for Linux (amd64)</name>
<packaging>jar</packaging>
<properties>
@ -22,8 +22,9 @@
</snapshotRepository>
</distributionManagement>
<scm>
<connection>scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java-natives-linux-amd64.git</connection>
<developerConnection>scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java-natives-linux-amd64.git</developerConnection>
<url>https://git.ignuranza.net/tdlight-team/tdlight-java-natives-linux-arm64.git</url>
<connection>scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java-natives-linux-arm64.git</connection>
<developerConnection>scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java-natives-linux-arm64.git</developerConnection>
<tag>master</tag>
</scm>
<build>
@ -60,6 +61,11 @@
</configuration>
</execution>
</executions>
<configuration>
<checkModificationExcludes>
<checkModificationExclude>pom.xml</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>