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

Makes LastChanges available in pipeline script #37

Closed
redbrain opened this issue Jan 2, 2018 · 3 comments
Closed

Makes LastChanges available in pipeline script #37

redbrain opened this issue Jan 2, 2018 · 3 comments

Comments

@redbrain
Copy link

@redbrain redbrain commented Jan 2, 2018

Hi looking in the code for the plugin i notice:

LastChangesBuildAction::public LastChanges getBuildChanges()

Is it possible to access this member function in a the pipeline script like:

def commits = step([$class: 'LastChanges', since:'LAST_SUCCESSFUL']).getBuildChanges():

for i in commits:
    print i.getMessage()

Would be really useful to have this.

@rmpestano

This comment has been minimized.

Copy link

@rmpestano rmpestano commented Jan 2, 2018

Hi @redbrain,

do you know other plugins that expose a pipeline dsl and provide such access so we can take as example?

Just exposing this local variable as an instance variable would do the trick?

Would you like to contribute?

Thanks for your feedback!

@redbrain

This comment has been minimized.

Copy link
Author

@redbrain redbrain commented Jan 2, 2018

@rmpestano

This comment has been minimized.

Copy link

@rmpestano rmpestano commented Jan 2, 2018

👍

redbrain added a commit to redbrain/last-changes-plugin that referenced this issue Jan 9, 2018
    def publisher = LastChanges.getLastChangesPublisher;
    publisher.publishLastChanges ()
rmpestano pushed a commit that referenced this issue Jan 10, 2018
rmpestano
refs #37
- adds pipeline script test
- updates dependencies (make pipeline ones optional)
- update test harness dependencies to support pipeline test
rmpestano pushed a commit that referenced this issue Jan 10, 2018
rafael-pestano
@rmpestano rmpestano changed the title Get Commits in pipeline script Makes LastChanges available in pipeline script Jan 10, 2018
@rmpestano rmpestano closed this Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.