Skip to content

Commit

Permalink
rcal-718 update okify script for the new jfrog cli (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddavis-stsci authored Nov 17, 2023
1 parent 48543b4 commit e803d5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- If this PR closes a JIRA ticket, make sure the title starts with the JIRA issue number,
for example RCAL-1234: <Fix a bug> -->
Resolves [RCAL-nnnn](https://jira.stsci.edu/browse/JP-nnnn)
Resolves [RCAL-nnnn](https://jira.stsci.edu/browse/RCAL-nnnn)

<!-- If this PR closes a GitHub issue, reference it here by its number -->
Closes #
Expand Down
8 changes: 3 additions & 5 deletions romancal/scripts/okify_regtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,16 @@ def artifactory_get_breadcrumbs(build_number, job_name, suffix):
jfrog rt search roman-pipeline-results/*/*_okify.json --props='build.number=540;build.name=RT :: romancal'
""" # noqa: E501
build_name = f"RT :: {job_name}"
build_name = f"{job_name}"

# Retreive all the okify specfiles for failed tests.
args = list(
["jfrog", "rt", "dl"]
+ [f"{ARTIFACTORY_REPO}/*/*{suffix}"]
+ [f"--build={build_name}/{build_number}"]
+ ["--flat"]
+ [f"{ARTIFACTORY_REPO}/*RT-{build_name}-{build_number}*/*{suffix}"]
)
subprocess.run(args, check=True, capture_output=True)

return sorted(glob(f"*{suffix}"))
return sorted(glob(f"**/**/*{suffix}"))


def artifactory_get_build_artifacts(build_number, job_name):
Expand Down

0 comments on commit e803d5e

Please sign in to comment.