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

Integrate Jira issue creation/update #35

Merged
merged 13 commits into from
Feb 7, 2022
Merged

Conversation

jpineda3
Copy link
Contributor

@jpineda3 jpineda3 commented Nov 2, 2021

logJira(jiraArgs) method first checks if an issue with summary in the form "[carrier-daughter] Stage failure message" exists in the project. Carrier and daughter board names are read from nebula-config, requiring these changes sdgtt/nebula-config#2

A comment is added if the issue exists. Otherwise, an issue is created.

jiraArgs is a map for Jira issue fields. The only hard requirement is the issue summary. Default values are assigned to relevant fields which are overwritten when listed in jiraArgs. If an issue exists and description is included in jiraArgs, the description appears in the added comment.

The attachment key in jiraArgs should have a list value. Attachments are uploaded for all stages other than the libad9361, work in progress.

The log_jira Gauntenv var should be true to enable Jira issue creation/updates. This is false by default.

log_jira_stages Gauntenv var should contain the stage names wherein Jira issue creation/update is allowed. By default this is an empty list such that if the log_jira flag is true, Jira will be accessed wherever logJira method is called.

See https://jira.analog.com/projects/HTH/summary for examples of created issues.

src/sdg/Gauntlet.groovy Outdated Show resolved Hide resolved
@kimpaller kimpaller force-pushed the adgt-test-harness branch 2 times, most recently from 4c45d4b to 2c95365 Compare November 9, 2021 04:36
src/sdg/Gauntlet.groovy Outdated Show resolved Hide resolved
Copy link
Collaborator

@kimpaller kimpaller left a comment

Choose a reason for hiding this comment

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

Just this one comment, everything else were fine.

src/sdg/Gauntlet.groovy Outdated Show resolved Hide resolved
@jpineda3 jpineda3 force-pushed the fix-jira-calls branch 2 times, most recently from 6898769 to 1e5a759 Compare January 28, 2022 02:10
@kimpaller kimpaller merged commit 60a0718 into adgt-test-harness Feb 7, 2022
kimpaller pushed a commit that referenced this pull request Apr 25, 2022
* Define logJira and var defaults

Signed-off-by: Julia Pineda <[email protected]>

* get_gitsha: return hash map

Signed-off-by: Julia Pineda <[email protected]>

* UpdateBOOTFiles: Parse failing_msg outside if send_results

Signed-off-by: Julia Pineda <[email protected]>

* UpdateBOOTFiles: Call logJira

Signed-off-by: Julia Pineda <[email protected]>

* LinuxTests: Call logJira

Signed-off-by: Julia Pineda <[email protected]>

* PyADITests: Call logJira

Signed-off-by: Julia Pineda <[email protected]>

* Libad9361Tests: Call logJira

* MATLABTests: Call logJira

Signed-off-by: Julia Pineda <[email protected]>

* Move common jiraArgs update inside logJira

Signed-off-by: Julia Pineda <[email protected]>

* Revert get_gitsha definition

Signed-off-by: Julia Pineda <[email protected]>

* Enclose Jira site access in try-catch

Signed-off-by: Julia Pineda <[email protected]>

* logJira cleanup

Signed-off-by: Julia Pineda <[email protected]>

* LinuxTests: Attach dmesg.log

Signed-off-by: Julia Pineda <[email protected]>
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.

3 participants