-
Notifications
You must be signed in to change notification settings - Fork 5
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
Jira OnDemand #28
Comments
Hi Jasper, Sorry to hear that it has not worked for. It does look like the issue is the connection to the TeamCity server though. It looks like it is failing on this line:
This points at probably an empty set of builds coming back from TeamCity. Can you test this endpoint on the REST API? |
I would start with something more like this:
This will hopefully just test the TeamCity component, and provide you some output. If that works, lets move on to the Jira component. The change is the Project name. You can try without, but if you have multiple builds called "trunk - CI" (which I assume you do) it will fail to correctly identify the right one. Let me know if this helps. A Fiddler trace would also be useful...but lets see if the above fails first. |
Well, fiddler returns a 401 - so authorization is definitely a problem Iøm using the super user authentication token from the teamcity-server.log - shouldn't that work? |
Ok, if it is publicly accessible and secured, you will need to send auth. The authtoken is just a HTTPAuth token (not a TeamCity specific auth token from logs), but you can drop that and just use the username/password in the URL of the server like so:
So this will just use the URL http://username:password@server/ and generate the simple HTTP Auth token required by TeamCity on the fly, rather than you specifying it on command line. |
Ok, using the inline style with username and password worked. Next problem is the BuildNumberComparitor does seem to like our versioning format. No builds added to the result in the GetByBuildTypeAndBuildRange method. The format is #year.#week.#patch.#buildnumber. I can look into this myself. Thanks |
Great, let me know if you have any other issues. I assumed that the BuildNumberComparitor would work as you have numerically small to large from->to. Interested to know if you have problems... |
So my assumption was that the to and from arguments, were ranges and not absolut values,in which the logic uses to mark the begining and end og the builds to include. I've implemented a BuildNumberRangeComparitor which can be used as a range on an integer or version build number representation. I'll create a pull request, if you like. I've still got Jira issues, when specifying the jira credentials. I've got TeamCity and Jira integrated, but when I look in the BuildDetails object, I get no related Issues in the GetIssuesFromBuild method. What am I missing here? |
Downloaded this tool a couple of times before and never really got it working with our Jira Ondemand solution. Will this work with Jira Ondemand? I've tried with the following syntax:
I get the following when executing:
Any help is appreciated :)
/J.
The text was updated successfully, but these errors were encountered: