Merge pull request #1896 from opensearch-project/dependabot/github_ac… #1063
This file contains hidden or 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
| name: Jenkins | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'backport/**' | |
| - 'dependabot/**' | |
| pull_request_target: | |
| types: [opened, synchronize, reopened] | |
| env: | |
| python-version: '3.11' | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| get-require-approval: | |
| # Skip all jenkins jobs if not on main repo | |
| if: ${{ github.repository == 'opensearch-project/opensearch-migrations' }} | |
| uses: ./.github/workflows/require-approval.yml | |
| sanitize-input: | |
| uses: ./.github/workflows/sanitize-repo-details.yml | |
| full-es68-e2e-aws-test: | |
| needs: [get-require-approval, sanitize-input] | |
| environment: ${{ needs.get-require-approval.outputs.is-require-approval }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Jenkins Job Trigger and Monitor | |
| uses: lewijacn/[email protected] | |
| with: | |
| jenkins_url: "https://migrations.ci.opensearch.org" | |
| job_name: "full-es68source-e2e-test" | |
| api_token: "${{ secrets.JENKINS_MIGRATIONS_GENERIC_WEBHOOK_TOKEN }}" | |
| job_params: "GIT_REPO_URL=${{ needs.sanitize-input.outputs.pr_repo_url }},GIT_BRANCH=${{ needs.sanitize-input.outputs.branch_name }}" | |
| elasticsearch-5x-k8s-local-test: | |
| needs: [get-require-approval, sanitize-input] | |
| environment: ${{ needs.get-require-approval.outputs.is-require-approval }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Jenkins Job Trigger and Monitor | |
| uses: lewijacn/[email protected] | |
| with: | |
| jenkins_url: "https://migrations.ci.opensearch.org" | |
| job_name: "elasticsearch-5x-k8s-local-test" | |
| api_token: "${{ secrets.JENKINS_MIGRATIONS_GENERIC_WEBHOOK_TOKEN }}" | |
| job_params: "GIT_REPO_URL=${{ needs.sanitize-input.outputs.pr_repo_url }},GIT_BRANCH=${{ needs.sanitize-input.outputs.branch_name }}" |