I was just wondering if there was anyway to retrieve information from a Jira ticket and assign it to a variable in Jenkins.
So (just an example) - I'd like to save label from a ticket as $Jira_Label
You can send a REST request to JIRA and retrieve the information, like the label, of a specified issue.
Here there is the list of the available requests you can send.
Related
When someone creates a Test job, we should send email only to him, not for all. How can I get a job owner name?
We have teams and when we make a job, the results of it we send to them. But if the name of the job consists "TestJob" we should send only to the creator.
Check out the Build User Vars Plugin
It will give you the executing users name and email address.
I have my application integrated with Datadog for monitoring purpose. At the same time I want the notifications/calls to be sent to the team if any of the metric fails to achieve the desires value. I used Webhooks integration in Datadog for this purpose. In the webhooks configuration I have set the URL (Twilio request) and I do get a call on my number. Now I am looking for an scenario wherein if the user doesn't pick the call for say 30secs then try calling the second number. How do I achieve this?
Just use a find me Twimlet. Enter up to 10 numbers and a timeout between moving on to the next number. Twilio will do the rest.
https://www.twilio.com/labs/twimlets/findme
If you are looking for a more full featured paid solution I'd recommend PagerDuty. DataDog has an integration for PagerDuty. Any monitor that gets triggered that mentions #pagerduty-myteamname(as example) in the monitor message will cause PagerDuty to page the on call person. If that person does not acknowledge the page you can configure it to go through list of people to contact next until it is acknowledged by someone.
I am working on automating the code review process in my team.
My objectives are:
When a review is created, assign it to two random developers
Automatically update the JIRA item, and assign them to the developers who were assigned as reviewers in Upsource
I was able to achieve objective #1 using Upsource Custom Workflows.
For the second objective, I have tried looking at Upsource Webhooks and JIRA Cloud REST API, but I fail to see how to assign a JIRA item from Upsource. JIRA's API specifies that in order to assign an item using REST, we need to create PUT request to this method:
PUT /rest/api/2/issue/{issueIdOrKey}/assignee
How can I create a PUT request from Upsource Webhooks?
How can I extract the {issueIDOrKey} from the originating Upsource review?
How can I create a PUT request from Upsource Webhooks?
Upsource webhooks send only POST requests at the moment. But I don't see how this limitation is blocking your task, because as I understand there has to be a service that'll translate Upsource payload to JIRA payload. That service should make a PUT request.
How can I extract the {issueIDOrKey} from the originating Upsource review?
Upsource provides an API for this. getReviewDetails method allows to get a list of issues associated with a given review (see this message spec).
We are developing a replica of Jenkins and we have a need to authenticate SVN & GIT repository URLs. I see Jenkins is able to do it through allowing the user to have credentials created(POST) and validated through(GET) a call. However, I am unable to validate the SVN/GIT repo without the jobname.
I am able to fetch the global credentials added to Jenkins. But they are only retrieved for job basis. So if I want to see the list of credentials of a particular job, I can do it using the following JSON.
http://${JENKINS_URL&PORT}/job/${JOB_NAME}/descriptorByName/hudson.scm.SubversionSCM$ModuleLocation/fillCredentialsIdItems
But I would like to fetch the credentials without depending on the job name. Please let me know if I have to provide any more information. Any help is much appreciated.
I am new to Jenkins API. I just had assignement in company where PL asked me to create a new job in Jenkins where I will run all the testing,build related things on my code and it should create dashboard where all figures and graph should be shown. He said that its feasible. Can anyone please guide me to do so.
Checkout Sectioned-Vew-Plugin.
Create a Job on Jenkins and add /api after the Url. You could see the API Information related to the Job you have just created. The API will contain the Get End points for Retrieving the data. Its available in JSON as well as XMl which you can parse and use as the source of Info for your dashboard. You can also trigger a new Build by using the Post API.