- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.4k
HBASE-27312 Update create-release to work with maven-gpg-plugin-3.0.1 and gnupg >= 2.1.x #4716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -30,7 +30,7 @@ | |
| DRY_RUN=${DRY_RUN:-1} #default to dry run | ||
| DEBUG=${DEBUG:-0} | ||
| GPG=${GPG:-gpg} | ||
| GPG_ARGS=(--no-autostart --batch) | ||
| GPG_ARGS=(--no-autostart --batch --pinentry-mode error) | ||
| if [ -n "${GPG_KEY}" ]; then | ||
| GPG_ARGS=("${GPG_ARGS[@]}" --local-user "${GPG_KEY}") | ||
| fi | ||
|  | @@ -670,10 +670,16 @@ make_binary_release() { | |
| # a third to assemble the binary artifact. Trying to do | ||
| # all in the one invocation fails; a problem in our | ||
| # assembly spec to in maven. TODO. Meantime, three invocations. | ||
| "${MVN[@]}" clean install -DskipTests | ||
| "${MVN[@]}" site -DskipTests | ||
| cmd=("${MVN[@]}" clean install -DskipTests) | ||
| echo "${cmd[*]}" | ||
| "${cmd[@]}" | ||
| cmd=("${MVN[@]}" site -DskipTests) | ||
| echo "${cmd[*]}" | ||
| "${cmd[@]}" | ||
| kick_gpg_agent | ||
| "${MVN[@]}" install assembly:single -DskipTests -Dcheckstyle.skip=true "${PUBLISH_PROFILES[@]}" | ||
| cmd=("${MVN[@]}" install assembly:single -DskipTests -Dcheckstyle.skip=true "${PUBLISH_PROFILES[@]}") | ||
| echo "${cmd[*]}" | ||
| "${cmd[@]}" | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes are probably not needed? Or not related to what this PR is about? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not needed but helpful when reading logs. Without this, I can't tell which step is ending in failure. I'm fine with pulling them out to a separate PR if you prefer. | ||
|  | ||
| # Check there is a bin gz output. The build may not produce one: e.g. hbase-thirdparty. | ||
| local f_bin_prefix="./${PROJECT}-assembly/target/${base_name}" | ||
|  | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose so. Would be good to try it on linux but going by Mac osx experience, would be surprised if the restricted extra socket worked with the maven gpg plugin pinentry-mode setting.... So yeah, lets make this change.