Update Jenkinsfile and pom.xml
This commit is contained in:
parent
7bb3b2e7ed
commit
3bb0790197
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -25,8 +25,8 @@ pipeline {
|
|||||||
sh "mkdir -p \"/var/jenkins_cache/.ccache\""
|
sh "mkdir -p \"/var/jenkins_cache/.ccache\""
|
||||||
sh "chown 1000:1000 -R \"/var/jenkins_cache/.ccache\""
|
sh "chown 1000:1000 -R \"/var/jenkins_cache/.ccache\""
|
||||||
sh "mkdir -p \"${workspace}/tdlight-java/src/main\""
|
sh "mkdir -p \"${workspace}/tdlight-java/src/main\""
|
||||||
sh "chown 1000:1000 -R \"${workspace}\""
|
//sh "chown 1000:1000 -R \"${workspace}\""
|
||||||
sh "chmod 771 -R \"${workspace}\""
|
//sh "chmod 771 -R \"${workspace}\""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +70,9 @@ pipeline {
|
|||||||
expression { params.RELEASE }
|
expression { params.RELEASE }
|
||||||
}
|
}
|
||||||
steps {
|
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') {
|
stage('Deliver') {
|
||||||
@ -88,17 +90,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
dir("${workspace}/tdlight-java") {
|
|
||||||
deleteDir()
|
deleteDir()
|
||||||
}
|
}
|
||||||
/* clean up tmp directory */
|
|
||||||
dir("${workspace}@tmp") {
|
|
||||||
deleteDir()
|
|
||||||
}
|
|
||||||
/* clean up script directory */
|
|
||||||
dir("${workspace}@script") {
|
|
||||||
deleteDir()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
12
pom.xml
12
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>it.tdlight</groupId>
|
<groupId>it.tdlight</groupId>
|
||||||
<artifactId>tdlight-natives-linux-amd64</artifactId>
|
<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>
|
<name>TDLight Natives for Linux (amd64)</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<properties>
|
<properties>
|
||||||
@ -22,8 +22,9 @@
|
|||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java-natives-linux-amd64.git</connection>
|
<url>https://git.ignuranza.net/tdlight-team/tdlight-java-natives-linux-arm64.git</url>
|
||||||
<developerConnection>scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java-natives-linux-amd64.git</developerConnection>
|
<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>
|
<tag>master</tag>
|
||||||
</scm>
|
</scm>
|
||||||
<build>
|
<build>
|
||||||
@ -60,6 +61,11 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<checkModificationExcludes>
|
||||||
|
<checkModificationExclude>pom.xml</checkModificationExclude>
|
||||||
|
</checkModificationExcludes>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
Loading…
Reference in New Issue
Block a user