Update Jenkinsfile, pom.xml, and pom.xml

This commit is contained in:
Andrea Cavalli 2020-10-30 11:17:26 +01:00
parent b4b9b2bd3e
commit 0a53d57567
3 changed files with 32 additions and 4 deletions

8
Jenkinsfile vendored
View File

@ -56,8 +56,8 @@ pipeline {
}
}
steps {
sh "cd tdlib; mvn -s $MVN_SET -B -Ptarget-snapshot deploy"
sh "cd tdlight; mvn -s $MVN_SET -B -Ptarget-snapshot deploy"
sh "cd tdlib; mvn -s $MVN_SET -B -PsnapshotDir deploy"
sh "cd tdlight; mvn -s $MVN_SET -B -PsnapshotDir deploy"
}
}
@ -80,8 +80,8 @@ pipeline {
sh "cd ${workspace}"
sh "git add --all || true"
sh "git commit -m \"Add generated files\" || true"
sh "cd tdlib; mvn -B -s $MVN_SET -Drevision=${BUILD_NUMBER} -Ptarget-release clean deploy"
sh "cd tdlight; mvn -B -s $MVN_SET -Drevision=${BUILD_NUMBER} -Ptarget-release clean deploy"
sh "cd tdlib; mvn -B -s $MVN_SET -Drevision=${BUILD_NUMBER} -PreleaseDir clean deploy"
sh "cd tdlight; mvn -B -s $MVN_SET -Drevision=${BUILD_NUMBER} -PreleaseDir clean deploy"
}
}

View File

@ -71,6 +71,20 @@
<version>8.3.1</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>releaseDir</id>
<build>
<directory>target-release</directory>
</build>
</profile>
<profile>
<id>snapshotDir</id>
<build>
<directory>target-snapshot</directory>
</build>
</profile>
</profiles>
<build>
<sourceDirectory>../src/main/java</sourceDirectory>
<plugins>

View File

@ -71,6 +71,20 @@
<version>8.3.1</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>releaseDir</id>
<build>
<directory>target-release</directory>
</build>
</profile>
<profile>
<id>snapshotDir</id>
<build>
<directory>target-snapshot</directory>
</build>
</profile>
</profiles>
<build>
<sourceDirectory>../src/main/java</sourceDirectory>
<plugins>