Skip to content

Commit ddd5d8b

Browse files
committed
Improvements to Release Scripts
In preparation for another try next release, these are improvements to the release CI scripts. They should glue together the inputs and outputs as required.
1 parent 9d84a9c commit ddd5d8b

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

ci/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ set -e
44

55
cd cf-java-client
66
./mvnw -q -Dmaven.test.skip=true deploy
7+
cp target/build-info.json ../build-info/build-info.json

ci/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ image_resource:
1010
inputs:
1111
- name: cf-java-client
1212

13+
outputs:
14+
- name: build-info
15+
1316
run:
1417
path: cf-java-client/ci/deploy.sh
1518

ci/promote-to-bintray.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
NAME=$(jq -r .name cf-java-client/target/build-info.json)
6-
NUMBER=$(jq -r .number cf-java-client/target/build-info.json)
5+
NAME=$(jq -r .name build-info/build-info.json)
6+
NUMBER=$(jq -r .number build-info/build-info.json)
77

88
## Promote to Bintray
99
curl -X "POST" "https://repo.spring.io/api/build/distribute/$NAME/$NUMBER" \

ci/promote-to-bintray.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ image_resource:
77
repository: cfje/cf-java-client
88

99
inputs:
10+
- name: build-info
1011
- name: cf-java-client
1112

1213
run:

ci/promote-to-maven-central.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
GROUP_ID=$(jq -r .modules[0].id cf-java-client/target/build-info.json | cut -d ':' -f 1)
6-
VERSION=$(jq -r .modules[0].id cf-java-client/target/build-info.json | cut -d ':' -f 3)
5+
GROUP_ID=$(jq -r .modules[0].id build-info/build-info.json | cut -d ':' -f 1)
6+
VERSION=$(jq -r .modules[0].id build-info/build-info.json | cut -d ':' -f 3)
77

88
## Promote to Maven Central
99
curl -X "POST" "https://api.bintray.com/maven_central_sync/spring/jars/$GROUP_ID/versions/$VERSION" \

ci/promote-to-maven-central.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ image_resource:
77
repository: cfje/cf-java-client
88

99
inputs:
10+
- name: build-info
1011
- name: cf-java-client
1112

1213
run:

0 commit comments

Comments
 (0)