Skip to content

Commit 7fb3c82

Browse files
author
jenkins-cfrd
committed
Public release
1 parent a0f4a45 commit 7fb3c82

42 files changed

Lines changed: 1008 additions & 438 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
© Copyright 2023 Micro Focus or one of its affiliates.
1+
Copyright 2016-2023 Open Text.
2+
3+
The only warranties for products and services of Open Text and
4+
its affiliates and licensors (“Open Text”) are as may be set forth
5+
in the express warranty statements accompanying such products and services.
6+
Nothing herein should be construed as constituting an additional warranty.
7+
Open Text shall not be liable for technical or editorial errors or
8+
omissions contained herein. The information contained herein is subject
9+
to change without notice.
10+
11+
Except as specifically indicated otherwise, this document contains
12+
confidential information and a valid license is required for possession,
13+
use or copying. If this work is provided to the U.S. Government,
14+
consistent with FAR 12.211 and 12.212, Commercial Computer Software,
15+
Computer Software Documentation, and Technical Data for Commercial Items are
16+
licensed to the U.S. Government under vendor's standard commercial license.
17+
218
Licensed under the Apache License, Version 2.0 (the "License");
319
you may not use this file except in compliance with the License.
420
You may obtain a copy of the License at
521
http://www.apache.org/licenses/LICENSE-2.0
6-
722
Unless required by applicable law or agreed to in writing, software
823
distributed under the License is distributed on an "AS IS" BASIS,
924
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1025
See the License for the specific language governing permissions and
11-
limitations under the License.
26+
limitations under the License.

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ Custom GitHub action which facilitates communication between GitHub and ALM Octa
66
 [Workflow Configuration](#Workflow-Configuration)
77

88
 [Change log](#Change-log)
9+
- [v23.3.0](#v2330)
910
- [v1.0](#v10)
1011

1112
## Requirements
12-
- At least one GitHub runner alocated for running the integration.
13+
- At least one GitHub runner allocated for running the integration.
1314
- ALM Octane version 16.1.200 or higher
14-
- ALM Octane API Acess with CI/CD Integration and DevOps Admin roles.
15+
- ALM Octane API Access with CI/CD Integration and DevOps Admin roles.
1516

1617
## Workflow Configuration
1718
### Note: these steps should be done inside your GitHub repository.
@@ -38,6 +39,7 @@ env:
3839
secret variables configuration [here](https://docs.github.com/en/actions/security-guides/encrypted-secrets)).
3940
- Set integration config params (ALM Octane URL, Shared Space, Workspace, credentials) and repository (Token and URL).
4041
- Set unitTestResultsGlobPattern to match desired Test Results path.
42+
- For Private repositories go to ```Settings -> Actions -> General``` and set your GITHUB_TOKEN permissions to Read and write. This is necessary to access the actions scope. (more details about GITHUB_TOKEN permissions [here](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token))
4143

4244
```yaml
4345
jobs:
@@ -104,13 +106,16 @@ jobs:
104106

105107
## Limitations
106108
- Needs at least one dedicated GitHub runner to execute the integration workflow.
107-
- On each pipeline run, the commits that happened since the previous ALM Octane build will be injected. For that, at least one ALM Octane build needs to exist (the commits will be injected starting from the second run of the pipepline with the integration).
109+
- On each pipeline run, the commits that happened since the previous ALM Octane build will be injected. For that, at least one ALM Octane build needs to exist (the commits will be injected starting from the second run of the pipeline with the integration).
108110
- Commits from secondary branches will be injected by running the workflow on the desired branch.
109111
## Change log
110112

113+
### v23.3.0
114+
- Rebranding.
115+
- Fixed issue with logs when connection to ALM Octane was failing.
116+
111117
### v1.0
112118
- Creates CI server and pipelines, and reflects pipeline run status in ALM Octane.
113119
- Injects JUnit test results.
114120
- Injects SCM data (commits and branches).
115121
- Injects pull requests on GitHub PR events.
116-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alm-octane-github-actions-integration",
3-
"version": "1.0.0",
3+
"version": "23.3.0",
44
"description": "A custom action which facilitates the connection between GitHub actions and ALM Octane.",
55
"main": "src/main.ts",
66
"scripts": {

resources/octaneConfig.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"octaneUrl": "https://laura-2.almoctane.com",
3-
"octaneSharedSpace": "1001",
4-
"octaneWorkspace": "1004",
5-
"octaneClientId": "GH_Actions_dp7r14glmojgvupyx23qw15k6",
6-
"octaneClientSecret": "(98115591638230150140O",
7-
"githubToken": "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",
8-
"serverBaseUrl": "https://github-itg.houston.softwaregrp.net/CFRD/testActionsIntegration"
2+
"octaneUrl": "",
3+
"octaneSharedSpace": ,
4+
"octaneWorkspace": ,
5+
"octaneClientId": "",
6+
"octaneClientSecret": "",
7+
"githubToken": "",
8+
"serverBaseUrl": ""
99
}

resources/workflow_to_run.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
[{"name": "CI_test"}]
1+
[
2+
{
3+
"name": ""
4+
}
5+
]

src/client/githubClient.ts

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
/*
2-
© Copyright 2023 Micro Focus or one of its affiliates.
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
http://www.apache.org/licenses/LICENSE-2.0
7-
8-
Unless required by applicable law or agreed to in writing, software
9-
distributed under the License is distributed on an "AS IS" BASIS,
10-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
See the License for the specific language governing permissions and
12-
limitations under the License.
2+
* Copyright 2016-2023 Open Text.
3+
*
4+
* The only warranties for products and services of Open Text and
5+
* its affiliates and licensors (“Open Text”) are as may be set forth
6+
* in the express warranty statements accompanying such products and services.
7+
* Nothing herein should be construed as constituting an additional warranty.
8+
* Open Text shall not be liable for technical or editorial errors or
9+
* omissions contained herein. The information contained herein is subject
10+
* to change without notice.
11+
*
12+
* Except as specifically indicated otherwise, this document contains
13+
* confidential information and a valid license is required for possession,
14+
* use or copying. If this work is provided to the U.S. Government,
15+
* consistent with FAR 12.211 and 12.212, Commercial Computer Software,
16+
* Computer Software Documentation, and Technical Data for Commercial Items are
17+
* licensed to the U.S. Government under vendor's standard commercial license.
18+
*
19+
* Licensed under the Apache License, Version 2.0 (the "License");
20+
* you may not use this file except in compliance with the License.
21+
* You may obtain a copy of the License at
22+
* http://www.apache.org/licenses/LICENSE-2.0
23+
* Unless required by applicable law or agreed to in writing, software
24+
* distributed under the License is distributed on an "AS IS" BASIS,
25+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
* See the License for the specific language governing permissions and
27+
* limitations under the License.
1328
*/
1429

1530
import { getOctokit } from '@actions/github';

src/client/octaneClient.ts

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
/*
2-
© Copyright 2023 Micro Focus or one of its affiliates.
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
http://www.apache.org/licenses/LICENSE-2.0
7-
8-
Unless required by applicable law or agreed to in writing, software
9-
distributed under the License is distributed on an "AS IS" BASIS,
10-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
See the License for the specific language governing permissions and
12-
limitations under the License.
2+
* Copyright 2016-2023 Open Text.
3+
*
4+
* The only warranties for products and services of Open Text and
5+
* its affiliates and licensors (“Open Text”) are as may be set forth
6+
* in the express warranty statements accompanying such products and services.
7+
* Nothing herein should be construed as constituting an additional warranty.
8+
* Open Text shall not be liable for technical or editorial errors or
9+
* omissions contained herein. The information contained herein is subject
10+
* to change without notice.
11+
*
12+
* Except as specifically indicated otherwise, this document contains
13+
* confidential information and a valid license is required for possession,
14+
* use or copying. If this work is provided to the U.S. Government,
15+
* consistent with FAR 12.211 and 12.212, Commercial Computer Software,
16+
* Computer Software Documentation, and Technical Data for Commercial Items are
17+
* licensed to the U.S. Government under vendor's standard commercial license.
18+
*
19+
* Licensed under the Apache License, Version 2.0 (the "License");
20+
* you may not use this file except in compliance with the License.
21+
* You may obtain a copy of the License at
22+
* http://www.apache.org/licenses/LICENSE-2.0
23+
* Unless required by applicable law or agreed to in writing, software
24+
* distributed under the License is distributed on an "AS IS" BASIS,
25+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
* See the License for the specific language governing permissions and
27+
* limitations under the License.
1328
*/
1429

1530
import { Octane } from '@microfocus/alm-octane-js-rest-sdk';

src/config/config.ts

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
/*
2-
© Copyright 2023 Micro Focus or one of its affiliates.
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
http://www.apache.org/licenses/LICENSE-2.0
7-
8-
Unless required by applicable law or agreed to in writing, software
9-
distributed under the License is distributed on an "AS IS" BASIS,
10-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
See the License for the specific language governing permissions and
12-
limitations under the License.
2+
* Copyright 2016-2023 Open Text.
3+
*
4+
* The only warranties for products and services of Open Text and
5+
* its affiliates and licensors (“Open Text”) are as may be set forth
6+
* in the express warranty statements accompanying such products and services.
7+
* Nothing herein should be construed as constituting an additional warranty.
8+
* Open Text shall not be liable for technical or editorial errors or
9+
* omissions contained herein. The information contained herein is subject
10+
* to change without notice.
11+
*
12+
* Except as specifically indicated otherwise, this document contains
13+
* confidential information and a valid license is required for possession,
14+
* use or copying. If this work is provided to the U.S. Government,
15+
* consistent with FAR 12.211 and 12.212, Commercial Computer Software,
16+
* Computer Software Documentation, and Technical Data for Commercial Items are
17+
* licensed to the U.S. Government under vendor's standard commercial license.
18+
*
19+
* Licensed under the Apache License, Version 2.0 (the "License");
20+
* you may not use this file except in compliance with the License.
21+
* You may obtain a copy of the License at
22+
* http://www.apache.org/licenses/LICENSE-2.0
23+
* Unless required by applicable law or agreed to in writing, software
24+
* distributed under the License is distributed on an "AS IS" BASIS,
25+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
* See the License for the specific language governing permissions and
27+
* limitations under the License.
1328
*/
1429

1530
import { getInput } from '@actions/core';

src/dto/github/ActionsEvent.ts

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
/*
2-
© Copyright 2023 Micro Focus or one of its affiliates.
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
http://www.apache.org/licenses/LICENSE-2.0
7-
8-
Unless required by applicable law or agreed to in writing, software
9-
distributed under the License is distributed on an "AS IS" BASIS,
10-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
See the License for the specific language governing permissions and
12-
limitations under the License.
2+
* Copyright 2016-2023 Open Text.
3+
*
4+
* The only warranties for products and services of Open Text and
5+
* its affiliates and licensors (“Open Text”) are as may be set forth
6+
* in the express warranty statements accompanying such products and services.
7+
* Nothing herein should be construed as constituting an additional warranty.
8+
* Open Text shall not be liable for technical or editorial errors or
9+
* omissions contained herein. The information contained herein is subject
10+
* to change without notice.
11+
*
12+
* Except as specifically indicated otherwise, this document contains
13+
* confidential information and a valid license is required for possession,
14+
* use or copying. If this work is provided to the U.S. Government,
15+
* consistent with FAR 12.211 and 12.212, Commercial Computer Software,
16+
* Computer Software Documentation, and Technical Data for Commercial Items are
17+
* licensed to the U.S. Government under vendor's standard commercial license.
18+
*
19+
* Licensed under the Apache License, Version 2.0 (the "License");
20+
* you may not use this file except in compliance with the License.
21+
* You may obtain a copy of the License at
22+
* http://www.apache.org/licenses/LICENSE-2.0
23+
* Unless required by applicable law or agreed to in writing, software
24+
* distributed under the License is distributed on an "AS IS" BASIS,
25+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
* See the License for the specific language governing permissions and
27+
* limitations under the License.
1328
*/
1429

1530
import {
@@ -21,20 +36,6 @@ interface GitHubRepository extends PayloadRepository {
2136
id?: string;
2237
}
2338

24-
/*
25-
© Copyright 2023 Micro Focus or one of its affiliates.
26-
Licensed under the Apache License, Version 2.0 (the "License");
27-
you may not use this file except in compliance with the License.
28-
You may obtain a copy of the License at
29-
http://www.apache.org/licenses/LICENSE-2.0
30-
31-
Unless required by applicable law or agreed to in writing, software
32-
distributed under the License is distributed on an "AS IS" BASIS,
33-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34-
See the License for the specific language governing permissions and
35-
limitations under the License.
36-
*/
37-
3839
export default interface ActionsEvent extends WebhookPayload {
3940
repository?: GitHubRepository;
4041
workflow?: {

src/dto/github/ActionsEventType.ts

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
/*
2-
© Copyright 2023 Micro Focus or one of its affiliates.
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
http://www.apache.org/licenses/LICENSE-2.0
7-
8-
Unless required by applicable law or agreed to in writing, software
9-
distributed under the License is distributed on an "AS IS" BASIS,
10-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
See the License for the specific language governing permissions and
12-
limitations under the License.
2+
* Copyright 2016-2023 Open Text.
3+
*
4+
* The only warranties for products and services of Open Text and
5+
* its affiliates and licensors (“Open Text”) are as may be set forth
6+
* in the express warranty statements accompanying such products and services.
7+
* Nothing herein should be construed as constituting an additional warranty.
8+
* Open Text shall not be liable for technical or editorial errors or
9+
* omissions contained herein. The information contained herein is subject
10+
* to change without notice.
11+
*
12+
* Except as specifically indicated otherwise, this document contains
13+
* confidential information and a valid license is required for possession,
14+
* use or copying. If this work is provided to the U.S. Government,
15+
* consistent with FAR 12.211 and 12.212, Commercial Computer Software,
16+
* Computer Software Documentation, and Technical Data for Commercial Items are
17+
* licensed to the U.S. Government under vendor's standard commercial license.
18+
*
19+
* Licensed under the Apache License, Version 2.0 (the "License");
20+
* you may not use this file except in compliance with the License.
21+
* You may obtain a copy of the License at
22+
* http://www.apache.org/licenses/LICENSE-2.0
23+
* Unless required by applicable law or agreed to in writing, software
24+
* distributed under the License is distributed on an "AS IS" BASIS,
25+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
* See the License for the specific language governing permissions and
27+
* limitations under the License.
1328
*/
1429

1530
const enum ActionsEventType {

0 commit comments

Comments
 (0)