Skip to content

Commit

Permalink
Improve release checks (jfrog#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Sep 20, 2023
1 parent 08c1a56 commit 126fc53
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions release/pipelines.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ pipelines:
- "8.0.0"
environmentVariables:
readOnly:
NEXT_VERSION: 0.0.0
NEXT_DEVELOPMENT_VERSION: 0.0.x-SNAPSHOT
NEXT_GRADLE_VERSION: 0.0.0
NEXT_GRADLE_DEVELOPMENT_VERSION: 0.0.x-SNAPSHOT
NEXT_VERSION: 2.0.0
NEXT_DEVELOPMENT_VERSION: 2.0.x-SNAPSHOT
NEXT_GRADLE_VERSION: 4.0.0
NEXT_GRADLE_DEVELOPMENT_VERSION: 4.0.x-SNAPSHOT

steps:
- name: Release
Expand Down Expand Up @@ -42,10 +42,10 @@ pipelines:

# Make sure versions provided
- echo "Checking variables"
- test -n "$NEXT_VERSION" -a "$NEXT_VERSION" != "0.0.0"
- test -n "$NEXT_GRADLE_VERSION" -a "$NEXT_GRADLE_VERSION" != "0.0.0"
- test -n "$NEXT_DEVELOPMENT_VERSION" -a "$NEXT_DEVELOPMENT_VERSION" != "0.0.0"
- test -n "$NEXT_GRADLE_DEVELOPMENT_VERSION" -a "$NEXT_GRADLE_DEVELOPMENT_VERSION" != "0.0.0"
- test -n "$NEXT_VERSION" -a "$NEXT_VERSION" != "2.0.0"
- test -n "$NEXT_GRADLE_VERSION" -a "$NEXT_GRADLE_VERSION" != "4.0.0"
- test -n "$NEXT_DEVELOPMENT_VERSION" -a "$NEXT_DEVELOPMENT_VERSION" != "2.0.x-SNAPSHOT"
- test -n "$NEXT_GRADLE_DEVELOPMENT_VERSION" -a "$NEXT_GRADLE_DEVELOPMENT_VERSION" != "4.0.x-SNAPSHOT"

# Configure JFrog CLI
- curl -fL https://install-cli.jfrog.io | sh
Expand Down

0 comments on commit 126fc53

Please sign in to comment.