Skip to content
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

Introduce a Dockerized version of the tool + Add support of generating YAML files as an output #2

Merged
merged 7 commits into from
Nov 21, 2019

Conversation

oleg-nenashev
Copy link
Member

@daniel-beck @MarkEWaite . I am experimenting with a Dockerized version of the tool for automated changelog generation with a GitHub Actions PoC. This PR kinda works, but it is in progress for now

@oleg-nenashev oleg-nenashev marked this pull request as ready for review November 13, 2019 15:36
Copy link
Member

@daniel-beck daniel-beck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be on the right way. Some implementation feedback.

.gitignore Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
end
puts changelog_yaml

changelog_path = ENV["CHANGELOG_YAML_PATH"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with the previous behavior would be preferable as an optional additional argument.

Alternatively, and this seems preferable, shouldn't this be the job of the invoker, i.e. docker-runner.rb?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then you would need to parse the CLI output there which is not fun.

Regarding optional arguments, it requires adding a CLI arguments framework to do it well. I could do it, but IMHO it is a separate story since the tool already uses environment variables in the script. Subject for further improvement

generate-jenkins-changelog.rb Outdated Show resolved Hide resolved
changelog_yaml = backported_issues.to_yaml
puts changelog_yaml

changelog_path = ENV["CHANGELOG_YAML_PATH"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, seems to make more sense as an argument.

oleg-nenashev and others added 2 commits November 16, 2019 21:16
Co-Authored-By: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
@oleg-nenashev oleg-nenashev changed the title WIP - Introduce a Dockerized version of the tool Introduce a Dockerized version of the tool Nov 18, 2019
@oleg-nenashev
Copy link
Member Author

@daniel-beck @MarkEWaite ready for final review IMHO

Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It worked for me when I used the instructions in the README to run a Docker image that I created from the Dockerfile in this pull request

@oleg-nenashev oleg-nenashev added the enhancement New feature or request label Nov 21, 2019
@oleg-nenashev oleg-nenashev changed the title Introduce a Dockerized version of the tool Introduce a Dockerized version of the tool + add support of generating YAML files as an output Nov 21, 2019
@oleg-nenashev oleg-nenashev changed the title Introduce a Dockerized version of the tool + add support of generating YAML files as an output Introduce a Dockerized version of the tool + Add support of generating YAML files as an output Nov 21, 2019
@oleg-nenashev
Copy link
Member Author

i will merge it to setup a CD Pipeline for the tool

@oleg-nenashev oleg-nenashev merged commit 63ecb0e into jenkinsci:master Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants