Skip to content

Commit

Permalink
ignore snapshots in both places
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
Adrian Cole committed May 26, 2024
1 parent 76999f6 commit 75df18b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
# * needs repo:status, public_repo
# * referenced in .settings.xml
GH_TOKEN: ${{ secrets.GH_TOKEN }}
# TODO: remove -DignoreSnapshots=true after ES 8.14.0 is released
run: | # GITHUB_REF will be refs/tags/release-MAJOR.MINOR.PATCH
build-bin/git/login_git &&
build-bin/maven/maven_release $(echo ${GITHUB_REF} | cut -d/ -f 3)
build-bin/maven/maven_release $(echo ${GITHUB_REF} | cut -d/ -f 3) -DignoreSnapshots=true

Check failure on line 44 in .github/workflows/create_release.yml

View workflow job for this annotation

GitHub Actions / lint

44:81 [line-length] line too long (99 > 80 characters)
3 changes: 2 additions & 1 deletion build-bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if [ "${version}" = "master" ]; then
version=$(sed -En 's/.*<version>(.*)<\/version>.*/\1/p' pom.xml| head -1)
fi

build-bin/maven/maven_deploy
# TODO: remove -DignoreSnapshots=true after ES 8.14.0 is released
build-bin/maven/maven_deploy -DignoreSnapshots=true
export RELEASE_FROM_MAVEN_BUILD=true
build-bin/docker_push ${version}
3 changes: 1 addition & 2 deletions build-bin/maven/maven_deploy
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ export MAVEN_OPTS="$($(dirname "$0")/maven_opts)"
# This script deploys a SNAPSHOT or release version to Sonatype.
#
# Note: In CI, `configure_maven_deploy` must be called before invoking this.
# TODO: remove -DignoreSnapshots=true and add -nsu to the mvn command after ES 8.14.0 is released
./mvnw --batch-mode -s ./.settings.xml -Prelease -DignoreSnapshots=true -DskipTests clean deploy $@
./mvnw --batch-mode -s ./.settings.xml -Prelease -nsu -DskipTests clean deploy $@
2 changes: 1 addition & 1 deletion build-bin/maven/maven_release
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ if [ "$commit_local_release_branch" != "$commit_remote_release_branch" ]; then
fi

# Prepare and push release commits and the version tag (N.N.N), which triggers deployment.
./mvnw --batch-mode -nsu -DreleaseVersion=${release_version} -Denforcer.fail=false -Darguments="-DskipTests -Denforcer.fail=false" release:prepare
./mvnw --batch-mode -nsu -DreleaseVersion=${release_version} -Denforcer.fail=false -Darguments="-DskipTests -Denforcer.fail=false" release:prepare $@

0 comments on commit 75df18b

Please sign in to comment.