File tree Expand file tree Collapse file tree 8 files changed +15
-17
lines changed
main/java/org/springframework/boot/build/artifactory
test/java/org/springframework/boot/build/artifactory Expand file tree Collapse file tree 8 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,11 @@ public static ArtifactoryRepository forProject(Project project) {
4646
4747 private static String determineArtifactoryRepo (Project project ) {
4848 String version = project .getVersion ().toString ();
49- String type = version .substring ( version . lastIndexOf ('.' ) + 1 );
50- if (type . equals ( "RELEASE" ) ) {
49+ int modifierIndex = version .lastIndexOf ('-' );
50+ if (modifierIndex == - 1 ) {
5151 return "release" ;
5252 }
53+ String type = version .substring (modifierIndex + 1 );
5354 if (type .startsWith ("M" ) || type .startsWith ("RC" )) {
5455 return "milestone" ;
5556 }
Original file line number Diff line number Diff line change @@ -32,28 +32,28 @@ public class ArtifactoryRepositoryTests {
3232 @ Test
3333 void whenProjectVersionIsMilestoneThenRepositoryIsMilestone () {
3434 Project project = ProjectBuilder .builder ().build ();
35- project .setVersion ("1.2.3. M1" );
35+ project .setVersion ("1.2.3- M1" );
3636 assertThat (ArtifactoryRepository .forProject (project ).getName ()).isEqualTo ("milestone" );
3737 }
3838
3939 @ Test
4040 void whenProjectVersionIsReleaseCandidateThenRepositoryIsMilestone () {
4141 Project project = ProjectBuilder .builder ().build ();
42- project .setVersion ("1.2.3. RC1" );
42+ project .setVersion ("1.2.3- RC1" );
4343 assertThat (ArtifactoryRepository .forProject (project ).getName ()).isEqualTo ("milestone" );
4444 }
4545
4646 @ Test
4747 void whenProjectVersionIsReleaseThenRepositoryIsRelease () {
4848 Project project = ProjectBuilder .builder ().build ();
49- project .setVersion ("1.2.3.RELEASE " );
49+ project .setVersion ("1.2.3" );
5050 assertThat (ArtifactoryRepository .forProject (project ).getName ()).isEqualTo ("release" );
5151 }
5252
5353 @ Test
54- void whenProjectVersionIsBuildSnapshotThenRepositoryIsSnapshot () {
54+ void whenProjectVersionIsSnapshotThenRepositoryIsSnapshot () {
5555 Project project = ProjectBuilder .builder ().build ();
56- project .setVersion ("1.2.3.BUILD -SNAPSHOT" );
56+ project .setVersion ("1.2.3-SNAPSHOT" );
5757 assertThat (ArtifactoryRepository .forProject (project ).getName ()).isEqualTo ("snapshot" );
5858 }
5959
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ The pipeline can be deployed using the following command:
1111
1212[source]
1313----
14- $ fly -t spring-boot set-pipeline -p spring-boot-2.3 .x -c ci/pipeline.yml -l ci/parameters.yml
14+ $ fly -t spring-boot set-pipeline -p spring-boot-2.4 .x -c ci/pipeline.yml -l ci/parameters.yml
1515----
1616
1717NOTE: This assumes that you have credhub integration configured with the appropriate
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ apt-get update
99apt-get install --no-install-recommends -y ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-utils iptables iproute2 jq
1010rm -rf /var/lib/apt/lists/*
1111
12- curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2 /concourse-java.sh > /opt/concourse-java.sh
12+ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.3 /concourse-java.sh > /opt/concourse-java.sh
1313
1414
1515# ##########################################################
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ github-repo-name: "spring-projects/spring-boot"
66docker-hub-organization : " springci"
77artifactory-server : " https://repo.spring.io"
88branch : " master"
9- milestone : " 2.3 .x"
9+ milestone : " 2.4 .x"
1010build-name : " spring-boot"
1111pipeline-name : " spring-boot"
1212concourse-url : " https://ci.spring.io"
Original file line number Diff line number Diff line change @@ -77,23 +77,23 @@ resources:
7777 repository : ((docker-hub-organization))/spring-boot-ci-image
7878 username : ((docker-hub-username))
7979 password : ((docker-hub-password))
80- tag : 2.3 .x
80+ tag : 2.4 .x
8181- name : spring-boot-jdk11-ci-image
8282 type : docker-image
8383 icon : docker
8484 source :
8585 repository : ((docker-hub-organization))/spring-boot-jdk11-ci-image
8686 username : ((docker-hub-username))
8787 password : ((docker-hub-password))
88- tag : 2.3 .x
88+ tag : 2.4 .x
8989- name : spring-boot-jdk14-ci-image
9090 type : docker-image
9191 icon : docker
9292 source :
9393 repository : ((docker-hub-organization))/spring-boot-jdk14-ci-image
9494 username : ((docker-hub-username))
9595 password : ((docker-hub-password))
96- tag : 2.3 .x
96+ tag : 2.4 .x
9797- name : artifactory-repo
9898 type : artifactory-resource
9999 icon : package-variant
Original file line number Diff line number Diff line change 44version=$( cat version/version )
55
66milestone=${version}
7- if [[ $RELEASE_TYPE = " RELEASE" ]]; then
8- milestone=${version% .RELEASE}
9- fi
107
118java -jar /github-release-notes-generator.jar \
129 --releasenotes.github.username=${GITHUB_USERNAME} \
Original file line number Diff line number Diff line change 1- version =2.3.1.BUILD -SNAPSHOT
1+ version =2.4.0 -SNAPSHOT
22
33org.gradle.caching =true
44org.gradle.parallel =true
You can’t perform that action at this time.
0 commit comments