Skip to content

kie-issues#587 abort stale builds #82

kie-issues#587 abort stale builds

kie-issues#587 abort stale builds #82

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Jenkins Tests
on:
pull_request:
paths:
- '.ci/jenkins/**'
- '.github/workflows/jenkins-tests-PR.yml'
jobs:
dsl-tests:
concurrency:
group: ${{ github.repository.name }}_dsl_tests-${{ github.head_ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Set correct base branch
run: |
branch="${{ github.base_ref }}"
if [ "${branch}" = "development" ]; then
branch='main'
fi
echo "BASE_BRANCH=${branch}" >> $GITHUB_ENV
- name: DSL tests
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/dsl-tests@main
with:
project: optaplanner
main-config-file-repo: apache/incubator-kie-optaplanner
main-config-file-path: .ci/jenkins/config/main.yaml
branch-config-file-repo: apache/incubator-kie-optaplanner
base-branch: ${{ env.BASE_BRANCH }}