Skip to content

Commit

Permalink
adjust gha workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed Dec 8, 2023
1 parent d94e5c1 commit 4070089
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class TestJenkinsfileNightly extends SingleFileDeclarativePipelineTest {
addEnvVar('GIT_BRANCH_NAME', 'BRANCH')
addEnvVar('GIT_AUTHOR', 'AUTHOR')
addEnvVar('GIT_AUTHOR_CREDS_ID', 'AUTHOR_CREDS_ID')
addEnvVar('GIT_AUTHOR_PUSH_CREDS_ID', 'AUTHOR_PUSH_CREDS_ID')
addEnvVar('JENKINS_EMAIL_CREDS_ID', 'KOGITO_CI_EMAIL_TO')
addEnvVar('STAGE_NAME', 'STAGE_NAME')
addEnvVar('BUILD_NUMBER', 'BUILD_NUMBER')
Expand Down Expand Up @@ -73,9 +74,9 @@ class TestJenkinsfileNightly extends SingleFileDeclarativePipelineTest {
'kogito-apps' : [:],
'kogito-examples': [:],
])
assertTestCallstackContains('githubscm.resolveRepository', 'kogito-examples, AUTHOR, BRANCH, false, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.resolveRepository', 'incubator-kie-kogito-examples, AUTHOR, BRANCH, false, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.createBranch', 'nightly-BRANCH')
assertTestCallstackContains('githubscm.pushObject', 'origin, nightly-BRANCH, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.pushObject', 'origin, nightly-BRANCH, AUTHOR_PUSH_CREDS_ID')
}

@Test
Expand All @@ -94,9 +95,9 @@ class TestJenkinsfileNightly extends SingleFileDeclarativePipelineTest {
'kogito-examples': [:],
], true)

assertTestCallstackContains('githubscm.resolveRepository', 'kogito-examples, AUTHOR, BRANCH, false, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.resolveRepository', 'incubator-kie-kogito-examples, AUTHOR, BRANCH, false, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.createBranch', 'nightly-BRANCH')
assertTestCallstackContains('githubscm.pushObject', 'origin, nightly-BRANCH, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.pushObject', 'origin, nightly-BRANCH, AUTHOR_PUSH_CREDS_ID')
}

@Test
Expand All @@ -122,9 +123,9 @@ class TestJenkinsfileNightly extends SingleFileDeclarativePipelineTest {
'kogito-examples': [:],
])

assertTestCallstackContains('githubscm.resolveRepository', 'kogito-examples, AUTHOR, BRANCH, false, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.resolveRepository', 'incubator-kie-kogito-examples, AUTHOR, BRANCH, false, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.createBranch', 'nightly-BRANCH')
assertTestCallstackContains('githubscm.pushObject', 'origin, nightly-BRANCH, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.pushObject', 'origin, nightly-BRANCH, AUTHOR_PUSH_CREDS_ID')
}

@Test
Expand All @@ -150,9 +151,9 @@ class TestJenkinsfileNightly extends SingleFileDeclarativePipelineTest {
'kogito-examples': [:],
])

assertTestCallstackContains('githubscm.resolveRepository', 'kogito-examples, AUTHOR, BRANCH, false, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.resolveRepository', 'incubator-kie-kogito-examples, AUTHOR, BRANCH, false, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.createBranch', 'nightly-BRANCH')
assertTestCallstackContains('githubscm.pushObject', 'origin, nightly-BRANCH, AUTHOR_CREDS_ID')
assertTestCallstackContains('githubscm.pushObject', 'origin, nightly-BRANCH, AUTHOR_PUSH_CREDS_ID')
}

@Test
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/jenkins-dsl-downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
echo 'BASE_BRANCH=${{ github.base_ref }}' >> $GITHUB_ENV
- name: DSL tests
uses: kiegroup/kie-ci/.ci/actions/dsl-tests@main
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/dsl-tests@main
with:
project: kogito
repository: ${{ matrix.repository }}
Expand Down Expand Up @@ -316,7 +316,7 @@ jobs:
echo 'BASE_BRANCH=development' >> $GITHUB_ENV
- name: DSL tests
uses: kiegroup/kie-ci/.ci/actions/dsl-tests@main
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/dsl-tests@main
with:
project: optaplanner
repository: ${{ matrix.repository }}
Expand Down Expand Up @@ -475,7 +475,7 @@ jobs:
echo 'BASE_BRANCH=${{ github.base_ref }}' >> $GITHUB_ENV
- name: DSL tests
uses: kiegroup/kie-ci/.ci/actions/dsl-tests@main
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/dsl-tests@main
with:
project: drools
repository: ${{ matrix.repository }}
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/jenkins-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ jobs:
with:
path: main

- name: Checkout shared libraries
uses: actions/checkout@v3
with:
repository: kiegroup/jenkins-pipeline-shared-libraries
path: shared-libs

- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
Expand All @@ -47,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: DSL tests
uses: kiegroup/kie-ci/.ci/actions/dsl-tests@main
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/dsl-tests@main
with:
main-config-file-repo: apache/incubator-kie-kogito-pipelines
main-config-file-path: .ci/jenkins/config/main.yaml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-backporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- name: Set target branches
id: set-targets
uses: kiegroup/kie-ci/.ci/actions/parse-labels@main
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/parse-labels@main
with:
labels: ${LABELS}

Expand All @@ -33,6 +33,6 @@ jobs:
fail-fast: false
steps:
- name: Backporting
uses: kiegroup/kie-ci/.ci/actions/backporting@main
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/backporting@main
with:
target-branch: ${{ matrix.target-branch }}

0 comments on commit 4070089

Please sign in to comment.