Needs review
Project:
Jenkins API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2015 at 12:49 UTC
Updated:
28 Jan 2015 at 17:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
littledynamo commentedComment #2
littledynamo commentedComment #3
littledynamo commentedComment #4
littledynamo commentedAdded comment for new parameter.
Comment #5
skwashd commented@littledynamo this is an interesting idea. I want to avoid implementing something like CTools exportables for managing Jenkins servers, so we need some way of handling this with {variable}s.
In order to maintain backwards compatibility
$urlwould need to be the last argument in the call tojenkins_request(). The base url would need to be an optional argument for all the functions that calljenkins_request(), as callingjenkins_request()directly is not encouraged and defeats the purpose of having all the other functions.Comment #6
littledynamo commented@skwashd - thanks for getting back to me. I have implemented the Entity API in my module, so each of the Jenkins hosts will be stored as an entity. This means I wouldn't need to store store URLs as variables in the Jenkins API module.
I'm mainly looking to add the Jenkins API as a dependency for my module and to call the functions directly. Have a gander at
runBuild()andgetJobs()to see what I mean http://cgit.drupalcode.org/update_trigger_build/tree/src/CIServerTypes/J...I've attached another patch, which includes the changes as per the feedback in #5.
Comment #7
littledynamo commented