-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/bugfix-for-release-2.4.0
- Loading branch information
Showing
255 changed files
with
15,648 additions
and
3,531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Jira release publishing | ||
|
||
on: | ||
workflow_dispatch: # Trigger manually | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
description: Version that will be released in Jira, eg. 2.0.0 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set current date as env variable | ||
run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | ||
- name: Echo current date | ||
run: echo $NOW | ||
|
||
- name: Get Version Id Of Release | ||
env: | ||
JIRA_USERNAME: ${{ secrets.RELEASE_IRS_JIRA_USERNAME }} | ||
JIRA_PASSWORD: ${{ secrets.RELEASE_IRS_JIRA_PASSWORD }} | ||
run: | | ||
versionId=$(curl --request GET --url 'https://jira.catena-x.net/rest/api/latest/project/10211/versions' \ | ||
--user $JIRA_USERNAME:$JIRA_PASSWORD --header 'Accept: application/json' | jq '.[] | select(.name == "NEXT_RELEASE").id') | ||
echo "Exported $versionId as version id to release" | ||
- name: Release Version in Jira | ||
env: | ||
JIRA_USERNAME: ${{ secrets.RELEASE_IRS_JIRA_USERNAME }} | ||
JIRA_PASSWORD: ${{ secrets.RELEASE_IRS_JIRA_PASSWORD }} | ||
VERSION: ${{ github.event.inputs.version }} | ||
run: | | ||
curl --request PUT --url 'https://jira.catena-x.net/rest/api/latest/version/$versionId' \ | ||
--user $JIRA_USERNAME:$JIRA_PASSWORD \ | ||
--header 'Accept: application/json' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"archived": false, | ||
"description": "$VERSION", | ||
"id": "$versionId", | ||
"name": "$VERSION", | ||
"releaseDate": "$NOW", | ||
"released": true, | ||
"overdue": false, | ||
"projectId": 10211 | ||
}' | ||
- name: Create NEXT_RELEASE Version in Jira | ||
env: | ||
JIRA_USERNAME: ${{ secrets.RELEASE_IRS_JIRA_USERNAME }} | ||
JIRA_PASSWORD: ${{ secrets.RELEASE_IRS_JIRA_PASSWORD }} | ||
run: | | ||
curl --request POST --url 'https://jira.catena-x.net/rest/api/latest/version' \ | ||
--user $JIRA_USERNAME:$JIRA_PASSWORD \ | ||
--header 'Accept: application/json' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"archived": false, | ||
"name": "NEXT_RELEASE", | ||
"projectId": 10211, | ||
"released": false | ||
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,7 +104,7 @@ jobs: | |
mv docs/src/diagram-replacer/assets/ docs/target/generated-docs/assets/ | ||
- name: GitHub Pages action | ||
uses: peaceiris/[email protected].2 | ||
uses: peaceiris/[email protected].3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: "./docs/target/generated-docs" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,11 @@ on: | |
options: | ||
- 'https://irs.int.demo.catena-x.net' | ||
- 'https://irs.dev.demo.catena-x.net' | ||
irs-ess-host: | ||
type: string | ||
description: IRS-ESS environment to test | ||
default: 'https://irs-ess.int.demo.catena-x.net' | ||
required: true | ||
global-asset-id: | ||
type: string | ||
description: Global Asset ID to use for the tests | ||
|
@@ -45,6 +50,7 @@ jobs: | |
- name: Run tests | ||
env: | ||
IRS_HOST: ${{ github.event.inputs.irs-host || 'https://irs.int.demo.catena-x.net' }} | ||
IRS_ESS_HOST: ${{ github.event.inputs.irs-ess-host || 'https://irs-ess.int.demo.catena-x.net' }} | ||
KEYCLOAK_HOST: ${{ secrets.KEYCLOAK_OAUTH2_CLIENT_TOKEN_URI }} | ||
KEYCLOAK_CLIENT_ID: ${{ secrets.KEYCLOAK_OAUTH2_CLIENT_ID }} | ||
KEYCLOAK_CLIENT_SECRET: ${{ secrets.KEYCLOAK_OAUTH2_CLIENT_SECRET }} | ||
|
@@ -58,10 +64,10 @@ jobs: | |
JIRA_USERNAME: ${{ secrets.ORG_IRS_JIRA_USERNAME }} | ||
JIRA_PASSWORD: ${{ secrets.ORG_IRS_JIRA_PASSWORD }} | ||
TEST_EXECUTION_TICKET: ${{ github.event.inputs.execution-ticket || 'TRI-910' }} | ||
# Remove tokens and upload the tavern results to JIRA Test execution TRI-910 | ||
# Remove tokens and upload the tavern results to JIRA Test execution | ||
run: | | ||
sed "s/access_tok.*:s = '.*'//g" tavern-results.xml | sed "s/Authorization: Bearer .*/Authorization:/g" | uniq > result.xml | ||
curl -H "Content-Type: multipart/form-data" \ | ||
-u $JIRA_USERNAME:$JIRA_PASSWORD \ | ||
-F '[email protected]' \ | ||
"https://jira.catena-x.net/rest/raven/1.0/import/execution/junit?testExecKey=$TEST_EXECUTION_TICKET" | ||
"https://jira.catena-x.net/rest/raven/1.0/import/execution/junit?testExecKey=$TEST_EXECUTION_TICKET" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.