File tree Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,33 @@ env_vars: {
5
5
key: " TRAMPOLINE_BUILD_FILE"
6
6
value: " github/google-http-java-client/.kokoro/release/stage.sh"
7
7
}
8
+
9
+ # Fetch the token needed for reporting release status to GitHub
10
+ before_action {
11
+ fetch_keystore {
12
+ keystore_resource {
13
+ keystore_config_id: 73713
14
+ keyname: " yoshi-automation-github-key"
15
+ }
16
+ }
17
+ }
18
+
19
+ # Fetch magictoken to use with Magic Github Proxy
20
+ before_action {
21
+ fetch_keystore {
22
+ keystore_resource {
23
+ keystore_config_id: 73713
24
+ keyname: " releasetool-magictoken"
25
+ }
26
+ }
27
+ }
28
+
29
+ # Fetch api key to use with Magic Github Proxy
30
+ before_action {
31
+ fetch_keystore {
32
+ keystore_resource {
33
+ keystore_config_id: 73713
34
+ keyname: " magic-github-proxy-api-key"
35
+ }
36
+ }
37
+ }
Original file line number Diff line number Diff line change 15
15
16
16
set -eo pipefail
17
17
18
+ # Start the releasetool reporter
19
+ python3 -m pip install gcp-releasetool
20
+ python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
21
+
18
22
source $( dirname " $0 " ) /common.sh
19
23
20
24
pushd $( dirname " $0 " ) /../../
21
25
22
26
setup_environment_secrets
23
27
create_settings_xml_file " settings.xml"
24
28
29
+ AUTORELEASE=" false"
30
+ if [[ -n " ${AUTORELEASE_PR} " ]]
31
+ then
32
+ AUTORELEASE=" true"
33
+ fi
34
+
25
35
mvn clean install deploy -B \
26
36
--settings settings.xml \
27
37
-DperformRelease=true \
28
38
-Dgpg.executable=gpg \
29
39
-Dgpg.passphrase=${GPG_PASSPHRASE} \
30
- -Dgpg.homedir=${GPG_HOMEDIR}
40
+ -Dgpg.homedir=${GPG_HOMEDIR} \
41
+ -Ddeploy.autorelease=${AUTORELEASE}
31
42
32
43
Original file line number Diff line number Diff line change 257
257
<configuration >
258
258
<serverId >ossrh</serverId >
259
259
<nexusUrl >https://oss.sonatype.org/</nexusUrl >
260
- <autoReleaseAfterClose >false </autoReleaseAfterClose >
260
+ <autoReleaseAfterClose >${deploy.autorelease} </autoReleaseAfterClose >
261
261
</configuration >
262
262
</plugin >
263
263
<plugin >
554
554
<project .httpclient.version>4.5.8</project .httpclient.version>
555
555
<project .opencensus.version>0.21.0</project .opencensus.version>
556
556
<project .root-directory>..</project .root-directory>
557
+ <deploy .autorelease>false</deploy .autorelease>
557
558
</properties >
558
559
559
560
<profiles >
You can’t perform that action at this time.
0 commit comments