[
https://issues.apache.org/jira/browse/YETUS-474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15827317#comment-15827317
]
Suraj Acharya commented on YETUS-474:
-------------------------------------
Thanks [~busbey]. I have created a version 0.99.99 for testing. I will delete
it once this code has been committed.
I have now made the changes so that :
When there are no issues assigned to a version, it will exit with 0 and if
there is no version present in jira, it will exit with 1.
However, the build.sh will continue regardless after throwing an error saying
unable to build release doc.
{code}
sacharya@sacharya-MBP:~/repos/yetus$ JIRA_VERSION=0.99.99
sacharya@sacharya-MBP:~/repos/yetus$ release-doc-maker/releasedocmaker.py
--lint=all --license --outputdir target
--project YETUS "--version=${JIRA_VERSION}"
--projecttitle="Apache Yetus" --usetoday
There is no issue which has the specified version: 0.99.99
sacharya@sacharya-MBP:~/repos/yetus$ $?
-bash: 0: command not found
sacharya@sacharya-MBP:~/repos/yetus$ JIRA_VERSION=0.99.98
sacharya@sacharya-MBP:~/repos/yetus$ release-doc-maker/releasedocmaker.py
--lint=all --license --outputdir target
--project YETUS "--version=${JIRA_VERSION}"
--projecttitle="Apache Yetus" --usetoday
JIRA returns HTTP error 400: Bad Request. Aborting.
- Please ensure that specified projects, fixVersions etc. are correct.
- The value '0.99.98' does not exist for the field 'fixVersion'.
sacharya@sacharya-MBP:~/repos/yetus$ $?
-bash: 1: command not found
{code}
{code}
sacharya@sacharya-MBP:~/repos/yetus$ git commit -a
[master 081c95a] Bump version to 0.99.99
5 files changed, 5 insertions(+), 5 deletions(-)
sacharya@sacharya-MBP:~/repos/yetus$ ./build.sh --release
working on version '0.99.99-SNAPSHOT'
generating release docs.
There is no issue which has the specified version: 0.99.99
mv: target/0.99.99/RELEASENOTES.0.99.99.md: No such file or directory
mv: target/0.99.99/CHANGES.0.99.99.md: No such file or directory
hard reseting working directory.
HEAD is now at 081c95a Bump version to 0.99.99
creating source tarball at '/Users/sacharya/repos/yetus/target/'
running maven builds for java components
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Yetus Project 0.99.99-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
sacharya@sacharya-MBP:~/repos/yetus$ ./build.sh --release
working on version '0.99.98-SNAPSHOT'
generating release docs.
JIRA returns HTTP error 400: Bad Request. Aborting.
- Please ensure that specified projects, fixVersions etc. are correct.
- The value '0.99.98' does not exist for the field 'fixVersion'.
mv: target/0.99.98/RELEASENOTES.0.99.98.md: No such file or directory
mv: target/0.99.98/CHANGES.0.99.98.md: No such file or directory
hard reseting working directory.
HEAD is now at 0cfa21d YETUS-474 build.sh --release fails.
creating source tarball at '/Users/sacharya/repos/yetus/target/'
running maven builds for java components
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------
{code}
> master build broken
> -------------------
>
> Key: YETUS-474
> URL: https://issues.apache.org/jira/browse/YETUS-474
> Project: Yetus
> Issue Type: Bug
> Components: build
> Affects Versions: 0.5.0
> Reporter: Sean Busbey
> Assignee: Suraj Acharya
> Priority: Blocker
> Fix For: 0.5.0
>
> Attachments: YETUS-474-01.patch, YETUS-474.patch
>
>
> {code}
> ./build.sh --release
> working on version '0.5.0-SNAPSHOT'
> generating release docs.
> There is no issue which has the specified version: 0.5.0
> mv: rename target/0.5.0/RELEASENOTES.0.5.0.md to target/RELEASENOTES.md: No
> such file or directory
> {code}
> I'm guessing it's the version bump and an edge case in handling RDM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)