Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

API for updating the supported build engine for a specific build definition

I'm working on a Go script to update the supported build engine for a specific build definition . Can someone point me to the correct API to use for this, or share  documentation that I can refer to?

0 votes


Accepted answer

Permanent link

Install the EWM SDK: https://rsjazz.wordpress.com/2024/02/09/ewm-rational-team-concert-extensions-workshop-changes-for-7-0-3/ all classes related to build are in packages com.ibm.team.build. 

Ralph Schoon selected this answer as the correct answer

1 vote

Comments

Thank you Ralph Schoon for your response. I have figured out api to update build engine and build definition and also written script for the same.

Would have been nice if you shared what you found.

1 vote


3 other answers

Permanent link

These are the documented and public supported APIs: https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding


There is no public Web/REST API for Build management I am aware of. The EWM Plain Java Client Libraries and the EWM SDK contain code for the build domain. I published some example code here: https://rsjazz.wordpress.com/2015/10/28/build-artifacts-publishing-and-automated-build-output-management-using-the-plain-java-client-libraries/ 
The example is more around build results, but should provide a hint where to search for examples around build definitions.

2 votes

Comments

If possible can you please guide me further that how can I use JAVA code for my script? 


Permanent link
  • Update Build Definition URL
    This api is used to update build definition. To update build definition payload , header and other required changes must be as follows.

    Header:

    User-agent - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36 Edg/89.0.774.77
    accept - text/json
    Content-Type - application/x-www-form-urlencoded; charset=UTF-8
    X-Jazz-CSRF-Prevent - JSESSIONID cookie in /jazz path
    Data - Encode data using function urllib.parse.urlencode(data) in python.
  • You can view payload from jazz.net web client -> Build Definition -> Edit build definition -> Try to change something that does not have impact on other data [In my jazz id I have not permissions for update so I have tried to update description which eventually fail but can see payload] -> Go to developer tool -> network tab -> click on update build definition url -> payload
  • Note - One need to reformat build schedule 

0 votes

Comments

Hi,

I am pretty sure that tis is not a public and documented API. Just so you know if its usage causes issues, IBM support might decline in fixing them.


Permanent link

To update the supported build engine for a specific build definition in IBM Engineering Workflow Management (EWM), formerly known as Rational Team Concert (RTC), you can utilize the EWM SDK or the Plain Java Client Libraries. Unfortunately, there isn't a publicly documented REST API for build management tasks like modifying build definitions.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 240
× 23

Question asked: Apr 17, 6:52 a.m.

Question was seen: 1,146 times

Last updated: May 13, 3:58 a.m.

Confirmation Cancel Confirm