Update Jenkinsfile syntax (#73) #240
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
name: Tests | |
on: | |
push: | |
# Triggers the workflow on labeled PRs only. | |
pull_request_target: | |
types: [labeled] | |
jobs: | |
Jenkins-JFrog-Plugin-Tests: | |
if: (contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push') && github.repository_owner != 'jenkinsci' | |
name: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "11" | |
distribution: "temurin" | |
- name: Setup Artifactory | |
run: | | |
go install github.com/jfrog/jfrog-testing-infra/local-rt-setup@latest | |
~/go/bin/local-rt-setup | |
env: | |
RTLIC: ${{secrets.RTLIC}} | |
GOPROXY: direct | |
- name: Run tests | |
env: | |
JFROG_URL: "http://localhost:8081/" | |
JFROG_USERNAME: "admin" | |
JFROG_PASSWORD: "password" | |
run: mvn -V -B -U --no-transfer-progress clean verify -DskipITs=false "-Dfindbugs.failOnError=false" |