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

Added support for creates views and creates jobs into view #21

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

Conversation

iviamontes
Copy link

Added the create_view method to create a jenkins view and the createJobIntoView method to creates job inside a specific view.

@txels
Copy link
Owner

txels commented Mar 20, 2015

Hey sorry I've been neglecting this project for a while.

Thanks for this submission.

@@ -351,3 +352,36 @@ def wait_for_build(self, jobname, poll_interval=3):
sys.stdout.write('.')
sys.stdout.flush()
print('')

def createJobIntoView(self, jobname, viewname, config_file, **context):
Copy link
Owner

Choose a reason for hiding this comment

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

I'd rather have the view name as an optional argument in the existing create method (viewname=None as default).
It makes the API simpler IMO. It also means less duplication of code.

What do you think?

Copy link
Author

Choose a reason for hiding this comment

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

Sure, great idea.

@txels
Copy link
Owner

txels commented Mar 20, 2015

Nice. Do you think you could add a test as well? Let me know if you need assistance with that.

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