mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-08 13:12:10 +00:00
DATAES-583 - Use parent 'artifactory' profile to release snapshots.
This commit is contained in:
parent
38f5a89c8a
commit
46a604df43
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@ -8,6 +8,7 @@ pipeline {
|
|||||||
|
|
||||||
options {
|
options {
|
||||||
disableConcurrentBuilds()
|
disableConcurrentBuilds()
|
||||||
|
buildDiscarder(logRotator(numToKeepStr: '14'))
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
@ -23,13 +24,13 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'adoptopenjdk/openjdk8:latest'
|
image 'adoptopenjdk/openjdk8:latest'
|
||||||
args '-v $HOME/.m2:/tmp/spring-data-maven-repository'
|
args '-v $HOME:/tmp/jenkins-home'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
options { timeout(time: 30, unit: 'MINUTES') }
|
options { timeout(time: 30, unit: 'MINUTES') }
|
||||||
steps {
|
steps {
|
||||||
sh 'rm -rf ?'
|
sh 'rm -rf ?'
|
||||||
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/spring-data-maven-repository" ./mvnw clean dependency:list test -Dsort -B'
|
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean dependency:list test -Dsort -B'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -42,7 +43,7 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'adoptopenjdk/openjdk8:latest'
|
image 'adoptopenjdk/openjdk8:latest'
|
||||||
args '-v $HOME/.m2:/tmp/spring-data-maven-repository'
|
args '-v $HOME:/tmp/jenkins-home'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
options { timeout(time: 20, unit: 'MINUTES') }
|
options { timeout(time: 20, unit: 'MINUTES') }
|
||||||
@ -53,7 +54,14 @@ pipeline {
|
|||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh 'rm -rf ?'
|
sh 'rm -rf ?'
|
||||||
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/spring-data-maven-repository" ./mvnw -Pci,snapshot -Dmaven.test.skip=true clean deploy -B'
|
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
|
||||||
|
'-Dartifactory.server=https://repo.spring.io ' +
|
||||||
|
"-Dartifactory.username=${ARTIFACTORY_USR} " +
|
||||||
|
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
|
||||||
|
"-Dartifactory.staging-repository=libs-snapshot-local " +
|
||||||
|
"-Dartifactory.build-name=spring-data-elasticsearch-3.1 " +
|
||||||
|
"-Dartifactory.build-number=${BUILD_NUMBER} " +
|
||||||
|
'-Dmaven.test.skip=true clean deploy -B'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Release to artifactory with docs') {
|
stage('Release to artifactory with docs') {
|
||||||
@ -63,7 +71,7 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'adoptopenjdk/openjdk8:latest'
|
image 'adoptopenjdk/openjdk8:latest'
|
||||||
args '-v $HOME/.m2:/tmp/spring-data-maven-repository'
|
args '-v $HOME:/tmp/jenkins-home'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
options { timeout(time: 20, unit: 'MINUTES') }
|
options { timeout(time: 20, unit: 'MINUTES') }
|
||||||
@ -74,7 +82,14 @@ pipeline {
|
|||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh 'rm -rf ?'
|
sh 'rm -rf ?'
|
||||||
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/spring-data-maven-repository" ./mvnw -Pci,snapshot -Dmaven.test.skip=true clean deploy -B'
|
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
|
||||||
|
'-Dartifactory.server=https://repo.spring.io ' +
|
||||||
|
"-Dartifactory.username=${ARTIFACTORY_USR} " +
|
||||||
|
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
|
||||||
|
"-Dartifactory.staging-repository=libs-snapshot-local " +
|
||||||
|
"-Dartifactory.build-name=spring-data-elasticsearch-3.1 " +
|
||||||
|
"-Dartifactory.build-number=${BUILD_NUMBER} " +
|
||||||
|
'-Dmaven.test.skip=true clean deploy -B'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
41
pom.xml
41
pom.xml
@ -193,47 +193,6 @@
|
|||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
|
||||||
<id>snapshot</id>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.jfrog.buildinfo</groupId>
|
|
||||||
<artifactId>artifactory-maven-plugin</artifactId>
|
|
||||||
<version>2.6.1</version>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>build-info</id>
|
|
||||||
<goals>
|
|
||||||
<goal>publish</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<buildInfo>
|
|
||||||
<buildUrl>{{BUILD_URL}}</buildUrl>
|
|
||||||
</buildInfo>
|
|
||||||
<deployProperties>
|
|
||||||
<zip.name>spring-data-elasticsearch</zip.name>
|
|
||||||
<zip.displayname>spring-data-elasticsearch</zip.displayname>
|
|
||||||
<zip.deployed>false</zip.deployed>
|
|
||||||
<archives>*:*:*:*@zip</archives>
|
|
||||||
</deployProperties>
|
|
||||||
<publisher>
|
|
||||||
<contextUrl>https://repo.spring.io</contextUrl>
|
|
||||||
<username>{{ARTIFACTORY_USR}}</username>
|
|
||||||
<password>{{ARTIFACTORY_PSW}}</password>
|
|
||||||
<repoKey>libs-snapshot-local</repoKey>
|
|
||||||
<snapshotRepoKey>libs-snapshot-local</snapshotRepoKey>
|
|
||||||
</publisher>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
|
|
||||||
<id>ci</id>
|
<id>ci</id>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user