Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit 95b3fa6

Browse files
yoshi-automationchingor13
authored andcommitted
chore: ensure snapshot build only builds snapshots (#58)
1 parent ab25f15 commit 95b3fa6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.kokoro/release/snapshot.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ source $(dirname "$0")/common.sh
1919
MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml
2020
pushd $(dirname "$0")/../../
2121

22+
# ensure we're trying to push a snapshot (no-result returns non-zero exit code)
23+
grep SNAPSHOT versions.txt
24+
2225
setup_environment_secrets
2326
create_settings_xml_file "settings.xml"
2427

@@ -27,4 +30,4 @@ mvn clean install deploy -B \
2730
-DperformRelease=true \
2831
-Dgpg.executable=gpg \
2932
-Dgpg.passphrase=${GPG_PASSPHRASE} \
30-
-Dgpg.homedir=${GPG_HOMEDIR}
33+
-Dgpg.homedir=${GPG_HOMEDIR}

synth.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2019-10-09T08:01:46.901757Z",
2+
"updateTime": "2019-10-15T08:05:27.085059Z",
33
"sources": [
44
{
55
"template": {

0 commit comments

Comments
 (0)