Skip to content

Commit 93eb315

Browse files
committed
Fixed wrong URL
1 parent 4938bc6 commit 93eb315

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

scripts/lib-jira.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
#JIRA_BASE_API="https://kosli-team.atlassian.net"
3+
#JIRA_BASE_URL="https://kosli-team.atlassian.net"
44
#JIRA_USERNAME="tore@kosli.com"
55
#JIRA_API_TOKEN="xx"
66
#JIRA_PROJECT_ID=10000
@@ -49,7 +49,7 @@ function create_release
4949
local -r projectId=$1; shift
5050
local -r releaseName=$1; shift
5151

52-
local -r url="${JIRA_BASE_API}/rest/api/3/version"
52+
local -r url="${JIRA_BASE_URL}/rest/api/3/version"
5353
local -r data='{
5454
"description": "An excellent version",
5555
"name": "'${releaseName}'",
@@ -65,15 +65,15 @@ function get_current_release_candidate
6565
{
6666
local -r projectId=$1; shift
6767

68-
local -r url="${JIRA_BASE_API}/rest/api/3/project/${projectId}/version?status=unreleased"
68+
local -r url="${JIRA_BASE_URL}/rest/api/3/project/${projectId}/version?status=unreleased"
6969
loud_curl_jira GET "${url}" {}
7070
}
7171

7272
function get_release
7373
{
7474
local -r releaseId=$1; shift
7575

76-
local -r url="${JIRA_BASE_API}/rest/api/3/version/${releaseId}?expand=approvers"
76+
local -r url="${JIRA_BASE_URL}/rest/api/3/version/${releaseId}?expand=approvers"
7777
loud_curl_jira GET "${url}" {}
7878
}
7979

@@ -84,7 +84,7 @@ function add_approver_to_release
8484
local -r approverId=$1; shift
8585
local -r releaseId=$1; shift
8686

87-
local -r url="${JIRA_BASE_API}/rest/api/3/version/${releaseId}"
87+
local -r url="${JIRA_BASE_URL}/rest/api/3/version/${releaseId}"
8888
local -r data='{
8989
"approvers": [{
9090
"accountId": "'${approverId}'"
@@ -97,7 +97,7 @@ function add_issue_to_release() {
9797
local -r issueKey=$1; shift
9898
local -r releaseId=$1; shift
9999

100-
local -r url="${JIRA_BASE_API}/rest/api/3/issue/${issueKey}"
100+
local -r url="${JIRA_BASE_URL}/rest/api/3/issue/${issueKey}"
101101
local -r data='{
102102
"fields": {
103103
"fixVersions": [{
@@ -111,7 +111,7 @@ function add_issue_to_release() {
111111
function get_issue {
112112
local -r issueKey=$1; shift
113113

114-
local -r url="${JIRA_BASE_API}/rest/api/3/issue/${issueKey}"
114+
local -r url="${JIRA_BASE_URL}/rest/api/3/issue/${issueKey}"
115115
loud_curl_jira GET "${url}" {}
116116
}
117117

scripts/lib-kosli.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
22

3-
export KOSLI_ORG=kosli-public
4-
export KOSLI_API_TOKEN="xx"
5-
KOSLI_ENV_STAGING=jira-integration-example-staging
6-
KOSLI_ENV_PROD=jira-integration-example-prod
7-
KOSLI_FLOW_FRONTEND=jira-example-frontend
8-
KOSLI_FLOW_BACKEND=jira-example-backend
3+
#export KOSLI_ORG=kosli-public
4+
#export KOSLI_API_TOKEN="xx"
5+
#KOSLI_ENV_STAGING=jira-integration-example-staging
6+
#KOSLI_ENV_PROD=jira-integration-example-prod
7+
#KOSLI_FLOW_FRONTEND=jira-example-frontend
8+
#KOSLI_FLOW_BACKEND=jira-example-backend
99

1010
function loud_curl
1111
{
@@ -151,7 +151,7 @@ function get_issue_keys_between_staging_and_prod
151151
echo ${issueKeys} | tr ' ' '\n' | sort -u
152152
}
153153

154-
get_issue_keys_between_staging_and_prod
154+
#get_issue_keys_between_staging_and_prod
155155

156156
#artifactFlowMapping=$(get_artifact_flow_commit_mapping_json ${KOSLI_ENV_STAGING} ${KOSLI_ENV_PROD})
157157
#

0 commit comments

Comments
 (0)