From 94be4f532ec43d50ebb4e8f67704eea2fba41d0a Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Thu, 4 Apr 2024 17:00:15 +0100 Subject: [PATCH 1/4] Split off 9.2.76 Signed-off-by: Gordon Smith --- commons-hpcc/pom.xml | 2 +- dfsclient/pom.xml | 2 +- pom.xml | 2 +- wsclient/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commons-hpcc/pom.xml b/commons-hpcc/pom.xml index 36497888f..6101de2f0 100644 --- a/commons-hpcc/pom.xml +++ b/commons-hpcc/pom.xml @@ -9,7 +9,7 @@ org.hpccsystems hpcc4j - 9.2.75-0-SNAPSHOT + 9.2.77-0-SNAPSHOT diff --git a/dfsclient/pom.xml b/dfsclient/pom.xml index 2d2d02fb9..868088f79 100644 --- a/dfsclient/pom.xml +++ b/dfsclient/pom.xml @@ -9,7 +9,7 @@ org.hpccsystems hpcc4j - 9.2.75-0-SNAPSHOT + 9.2.77-0-SNAPSHOT diff --git a/pom.xml b/pom.xml index a14c50f83..5bae45274 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.hpccsystems hpcc4j - 9.2.75-0-SNAPSHOT + 9.2.77-0-SNAPSHOT pom HPCC Systems Java Projects https://hpccsystems.com diff --git a/wsclient/pom.xml b/wsclient/pom.xml index 7d47a8727..4de182d19 100644 --- a/wsclient/pom.xml +++ b/wsclient/pom.xml @@ -9,7 +9,7 @@ org.hpccsystems hpcc4j - 9.2.75-0-SNAPSHOT + 9.2.77-0-SNAPSHOT From d3921160315d9e002a4ea5bddea17b60c2f90111 Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Fri, 5 Apr 2024 17:17:05 +0100 Subject: [PATCH 2/4] Split off 9.6.2 Signed-off-by: Gordon Smith --- commons-hpcc/pom.xml | 2 +- dfsclient/pom.xml | 2 +- pom.xml | 2 +- wsclient/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commons-hpcc/pom.xml b/commons-hpcc/pom.xml index d3b19e3db..e3d95486c 100644 --- a/commons-hpcc/pom.xml +++ b/commons-hpcc/pom.xml @@ -9,7 +9,7 @@ org.hpccsystems hpcc4j - 9.6.1-0-SNAPSHOT + 9.6.3-0-SNAPSHOT diff --git a/dfsclient/pom.xml b/dfsclient/pom.xml index 40f0a1281..45fc9dcda 100644 --- a/dfsclient/pom.xml +++ b/dfsclient/pom.xml @@ -9,7 +9,7 @@ org.hpccsystems hpcc4j - 9.6.1-0-SNAPSHOT + 9.6.3-0-SNAPSHOT diff --git a/pom.xml b/pom.xml index 77bf7bd83..32a5e3e01 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.hpccsystems hpcc4j - 9.6.1-0-SNAPSHOT + 9.6.3-0-SNAPSHOT pom HPCC Systems Java Projects https://hpccsystems.com diff --git a/wsclient/pom.xml b/wsclient/pom.xml index f68a0df77..bbf38fab5 100644 --- a/wsclient/pom.xml +++ b/wsclient/pom.xml @@ -9,7 +9,7 @@ org.hpccsystems hpcc4j - 9.6.1-0-SNAPSHOT + 9.6.3-0-SNAPSHOT From cd1e704d88a89c0bc34a95c15ae7aea80b7607cf Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Fri, 5 Apr 2024 17:18:43 +0100 Subject: [PATCH 3/4] Split off 9.4.50 Signed-off-by: Gordon Smith --- commons-hpcc/pom.xml | 2 +- dfsclient/pom.xml | 2 +- pom.xml | 2 +- wsclient/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commons-hpcc/pom.xml b/commons-hpcc/pom.xml index 7f3991946..fe2736024 100644 --- a/commons-hpcc/pom.xml +++ b/commons-hpcc/pom.xml @@ -9,7 +9,7 @@ org.hpccsystems hpcc4j - 9.4.49-0-SNAPSHOT + 9.4.51-0-SNAPSHOT diff --git a/dfsclient/pom.xml b/dfsclient/pom.xml index aaf732ac4..ba655d7ea 100644 --- a/dfsclient/pom.xml +++ b/dfsclient/pom.xml @@ -9,7 +9,7 @@ org.hpccsystems hpcc4j - 9.4.49-0-SNAPSHOT + 9.4.51-0-SNAPSHOT diff --git a/pom.xml b/pom.xml index 663398f01..f5d55812a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.hpccsystems hpcc4j - 9.4.49-0-SNAPSHOT + 9.4.51-0-SNAPSHOT pom HPCC Systems Java Projects https://hpccsystems.com diff --git a/wsclient/pom.xml b/wsclient/pom.xml index 1792623fb..e145de651 100644 --- a/wsclient/pom.xml +++ b/wsclient/pom.xml @@ -9,7 +9,7 @@ org.hpccsystems hpcc4j - 9.4.49-0-SNAPSHOT + 9.4.51-0-SNAPSHOT From 0d99a57b58159a0e521ab440ed0658de7708fe28 Mon Sep 17 00:00:00 2001 From: James McMullan Date: Thu, 11 Apr 2024 09:50:59 -0400 Subject: [PATCH 4/4] HPCC4J-593 Update JirabotMerge for Jira Cloud (#704) - Updated jirabot merge script to use Atlassian python library - Updated project name in JirabotMerge and Jirabot Signed-off-by: James McMullan James.McMullan@lexisnexis.com Signed-off-by: James McMullan James.McMullan@lexisnexis.com --- .github/workflows/Jirabot.yml | 2 +- .github/workflows/JirabotMerge.yml | 49 ++++++++++++++++-------------- 2 files changed, 28 insertions(+), 23 deletions(-) diff --git a/.github/workflows/Jirabot.yml b/.github/workflows/Jirabot.yml index 7bdcd1632..3e779dcac 100644 --- a/.github/workflows/Jirabot.yml +++ b/.github/workflows/Jirabot.yml @@ -115,7 +115,7 @@ jobs: issuem = re.search("(HPCC4J|JAPI)-[0-9]+", title) if issuem: nameCorrectionPattern = re.compile("hpcc4j", re.IGNORECASE) - issue_name = nameCorrectionPattern.sub("JAPI",issuem.group()) + issue_name = nameCorrectionPattern.sub("HPCC4J",issuem.group()) userDict = json.loads(os.environ['GHUB_JIRA_USER_MAP']) if not isinstance(userDict, dict): diff --git a/.github/workflows/JirabotMerge.yml b/.github/workflows/JirabotMerge.yml index c4dcc8bad..27f4cb449 100644 --- a/.github/workflows/JirabotMerge.yml +++ b/.github/workflows/JirabotMerge.yml @@ -30,6 +30,7 @@ jobs: python -VV python -m site python -m pip install --upgrade pip setuptools wheel + python -m pip install --upgrade atlassian-python-api python -m pip install --upgrade jira - name: "Checkout" uses: actions/checkout@v2 @@ -56,7 +57,7 @@ jobs: import subprocess import time import sys - from jira.client import JIRA + from atlassian.jira import Jira def extractVersion(versionStr): parts = versionStr.split('.') @@ -131,13 +132,13 @@ jobs: for fixVersion in fixVersions: alreadyHasFixVersion = False - versions = jira.project_versions('JAPI') + versions = jira.get_project_versions('HPCC4J') for v in versions: - if v.name == fixVersion: + if v['name'] == fixVersion: alreadyHasFixVersion = True if not alreadyHasFixVersion: - jira.create_version(name=fixVersion, project='JAPI', description=fixVersion) + jira.add_version(fixVersion, 'HPCC4J', fixVersion) return fixVersions @@ -146,42 +147,45 @@ jobs: versionsToAdd = [] + issueName = issue['key'] + issueFields = issue['fields'] + for addedVersion in fixVersions: alreadyHasFixVersion = False - for v in issue.fields.fixVersions: - if v.name == addedVersion: + for v in issueFields['fixVersions']: + if v['name'] == addedVersion: alreadyHasFixVersion = True break if not alreadyHasFixVersion: versionsToAdd.append(addedVersion) - versions = jira.project_versions('JAPI') + versions = jira.get_project_versions('HPCC4J') updatedVersionList = [] - for v in issue.fields.fixVersions: - updatedVersionList.append({'id' : v.id}) + for v in issueFields['fixVersions']: + updatedVersionList.append({'id' : v['id']}) for fixVersionName in versionsToAdd: fixVersion = None for v in versions: - if v.name == fixVersionName: + if v['name'] == fixVersionName: fixVersion = v break if fixVersion: - updatedVersionList.append({'id' : fixVersion.id}) + updatedVersionList.append({'id' : fixVersion['id']}) result += "Added fix version: " + fixVersionName + "\n" else: result += "Error: Unable to find fix version: " + fixVersionName + "\n" if len(versionsToAdd) > 0: - issue.update(fields={'fixVersions': updatedVersionList}) + jira.update_issue_field(issueName, {'fixVersions': updatedVersionList}) else: result += "Fix versions already added.\n" - statusName = str(issue.fields.status) + statusName = str(issueFields['status']['name']) if statusName != 'Resolved': - transition = 'Resolve Issue' - jira.transition_issue(issue, transition) + transition = 'Accept Pull Request' + jira.issue_transition(issue_name, transition) result += "Workflow Transition: 'Resolve issue'\n" return result @@ -203,23 +207,24 @@ jobs: issuem = re.search("(HPCC4J|JAPI)-[0-9]+", title) if issuem: nameCorrectionPattern = re.compile("hpcc4j", re.IGNORECASE) - issue_name = nameCorrectionPattern.sub("JAPI",issuem.group()) + issue_name = nameCorrectionPattern.sub("HPCC4J",issuem.group()) options = { 'server': jira_url } - jira = JIRA(options=options, basic_auth=(jirabot_user, jirabot_pass)) - issue = jira.issue(issue_name) - if issue is None: - print('Unable to find issue with name: ' + issue_name) - sys.exit(1) + jira = Jira(url=jira_url, username=jirabot_user, password=jirabot_pass, cloud=True) + + if not jira.issue_exists(issue_name): + sys.exit('Error: Unable to find Jira issue: ' + issue_name) + else: + issue = jira.issue(issue_name) result = 'Jirabot Action Result:\n' fixVersions = generateFixVersionList(jira, branch_name) result += resolveIssue(jira, issue, fixVersions) - jira.add_comment(issue, result) + jira.issue_add_comment(issue_name, result) else: print('Unable to find Jira issue name in title')