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

Add githubChangeset, retrieves latest commits for build #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cvitter
Copy link

@cvitter cvitter commented Aug 18, 2017

No description provided.

@cvitter cvitter requested a review from kmadel October 17, 2017 12:06
Copy link
Contributor

@kmadel kmadel left a comment

Choose a reason for hiding this comment

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

Would be nice to off-load this process to the agent, but at the very least, seems it would be useful to include a timestamp.

def entries = changeLogSets[i].items
for (int j = 0; j < entries.length; j++) {
def entry = entries[j]
changeString += " - ${entry.msg} [${entry.author}]\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

Timestamp would be nice per https://support.cloudbees.com/hc/en-us/articles/217630098-How-to-access-Changelogs-in-a-Pipeline-Job-

Also, it would be awesome to do this with pure shell, but I guess the hard part is figuring out the last built commit - git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit 68e07c5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants