Update Jenkinsfile
This commit is contained in:
parent
845e2aa9b3
commit
aced5f3bdc
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -45,7 +45,9 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage("Build & Deploy SNAPSHOT") {
|
||||
stage("Build & Deploy") {
|
||||
parallel {
|
||||
stage("Deploy SNAPSHOT") {
|
||||
agent {
|
||||
docker {
|
||||
image 'maven:3.6.3-openjdk-11'
|
||||
@ -54,12 +56,13 @@ pipeline {
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh "cd tdlib; mvn -s $MVN_SET -B deploy"
|
||||
sh "cd tdlight; mvn -s $MVN_SET -B deploy"
|
||||
sh "cd tdlib; mvn -s $MVN_SET -B -Ptarget-snapshot deploy"
|
||||
sh "cd tdlight; mvn -s $MVN_SET -B -Ptarget-snapshot deploy"
|
||||
}
|
||||
}
|
||||
|
||||
stage("Release") {
|
||||
stage("Deploy Release") {
|
||||
agent {
|
||||
docker {
|
||||
image 'maven:3.6.3-openjdk-11'
|
||||
@ -76,8 +79,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} clean deploy"
|
||||
sh "cd tdlight; mvn -B -s $MVN_SET -Drevision=${BUILD_NUMBER} clean deploy"
|
||||
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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -94,7 +97,7 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
sh "\
|
||||
cd tdlight/target/apidocs; \
|
||||
cd tdlight/target-release/apidocs; \
|
||||
git remote add origin https://git.ignuranza.net/tdlight-team/tdlight-docs; \
|
||||
git add -A; \
|
||||
git commit -m \"Update javadocs\"; \
|
||||
@ -103,6 +106,9 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
/* clean up directory */
|
||||
|
Loading…
Reference in New Issue
Block a user