Updated execution rights for mvnw #18
Workflow file for this run
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: Jenkins plugin .hpi build | |
# This workflow will build an executable Jenkins plugin in .hpi format for further manual installation in Jenkins | |
on: [push, workflow_dispatch] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Jenkins plugin code | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: maven | |
- name: Build Jenkins Plugin into .hpi | |
shell: bash | |
run: chmod +x mvnw && ./mvnw clean package | |
- name: Verify content of target folder | |
shell: bash | |
run: pwd && ls -l target/ | |
- name: Archive the Build Output | |
uses: actions/upload-artifact@v4 | |
with: | |
name: zowe-zdevops-hpi | |
path: target/*.hpi | |
compression-level: 0 # no compression | |
test: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout the plugin GitHub repository | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: maven | |
- name: Run Unit Tests with Maven | |
shell: bash | |
run: chmod +x mvnw && ./mvnw test |