Skip to content

Commit 5b1719c

Browse files
committed
Upgrade CI to concourse-release-scripts 0.3.4
1 parent c056b81 commit 5b1719c

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

ci/images/setup.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ rm -rf /var/lib/apt/lists/*
1414

1515
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/concourse-java.sh > /opt/concourse-java.sh
1616

17-
curl --output /opt/concourse-release-scripts.jar https://repo.spring.io/release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.2/concourse-release-scripts-0.3.2.jar
18-
1917
###########################################################
2018
# JAVA
2119
###########################################################

ci/parameters.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
github-repo: "https://github.com/spring-projects/spring-framework.git"
22
github-repo-name: "spring-projects/spring-framework"
3+
sonatype-staging-profile: "org.springframework"
34
docker-hub-organization: "springci"
45
artifactory-server: "https://repo.spring.io"
56
branch: "5.3.x"

ci/pipeline.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ anchors:
1212
SONATYPE_USERNAME: ((sonatype-username))
1313
SONATYPE_PASSWORD: ((sonatype-password))
1414
SONATYPE_URL: ((sonatype-url))
15-
SONATYPE_STAGING_PROFILE_ID: ((sonatype-staging-profile-id))
15+
SONATYPE_STAGING_PROFILE: ((sonatype-staging-profile))
1616
artifactory-task-params: &artifactory-task-params
1717
ARTIFACTORY_SERVER: ((artifactory-server))
1818
ARTIFACTORY_USERNAME: ((artifactory-username))
@@ -345,7 +345,6 @@ jobs:
345345
download_artifacts: false
346346
save_build_info: true
347347
- task: promote
348-
image: ci-image
349348
file: git-repo/ci/tasks/promote-version.yml
350349
params:
351350
RELEASE_TYPE: M
@@ -390,7 +389,6 @@ jobs:
390389
download_artifacts: false
391390
save_build_info: true
392391
- task: promote
393-
image: ci-image
394392
file: git-repo/ci/tasks/promote-version.yml
395393
params:
396394
RELEASE_TYPE: RC
@@ -435,7 +433,6 @@ jobs:
435433
download_artifacts: true
436434
save_build_info: true
437435
- task: promote
438-
image: ci-image
439436
file: git-repo/ci/tasks/promote-version.yml
440437
params:
441438
RELEASE_TYPE: RELEASE

ci/scripts/promote-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ CONFIG_DIR=git-repo/ci/config
66
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
77
export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json
88

9-
java -jar /opt/concourse-release-scripts.jar \
9+
java -jar /concourse-release-scripts.jar \
1010
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
1111
publishToCentral $RELEASE_TYPE $BUILD_INFO_LOCATION artifactory-repo || { exit 1; }
1212

13-
java -jar /opt/concourse-release-scripts.jar \
13+
java -jar /concourse-release-scripts.jar \
1414
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
1515
promote $RELEASE_TYPE $BUILD_INFO_LOCATION || { exit 1; }
1616

ci/tasks/promote-version.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
---
22
platform: linux
3+
image_resource:
4+
type: registry-image
5+
source:
6+
repository: springio/concourse-release-scripts
7+
tag: '0.3.4'
38
inputs:
49
- name: git-repo
510
- name: artifactory-repo
@@ -13,6 +18,6 @@ params:
1318
SONATYPE_USER:
1419
SONATYPE_PASSWORD:
1520
SONATYPE_URL:
16-
SONATYPE_STAGING_PROFILE_ID:
21+
SONATYPE_STAGING_PROFILE:
1722
run:
1823
path: git-repo/ci/scripts/promote-version.sh

0 commit comments

Comments
 (0)