Skip to content

Commit 8285c2b

Browse files
fix: release scripts from issuing overlapping phases (#1043)
`mvn deploy` will run `mvn install` so specifying `mvn install deploy` is redundant at best. At worst, it will cause plugins like maven-shade-plugin to be executed twice re-shading itself
1 parent 082e1ca commit 8285c2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

synthtool/gcp/templates/java_library/.kokoro/release/snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ grep SNAPSHOT versions.txt
2525
setup_environment_secrets
2626
create_settings_xml_file "settings.xml"
2727

28-
mvn clean install deploy -B \
28+
mvn clean deploy -B \
2929
--settings ${MAVEN_SETTINGS_FILE} \
3030
-DperformRelease=true \
3131
-Dgpg.executable=gpg \

synthtool/gcp/templates/java_library/.kokoro/release/stage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ create_settings_xml_file "settings.xml"
2929

3030
# attempt to stage 3 times with exponential backoff (starting with 10 seconds)
3131
retry_with_backoff 3 10 \
32-
mvn clean install deploy -B \
32+
mvn clean deploy -B \
3333
--settings ${MAVEN_SETTINGS_FILE} \
3434
-DskipTests=true \
3535
-DperformRelease=true \

0 commit comments

Comments
 (0)