build(deps): bump release-drafter/release-drafter from 6.1.0 to 7.0.0 #444
Workflow file for this run
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java-version: [17] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: 'temurin' | |
| - name: Cache Maven dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Set up Maven settings.xml for Jenkins | |
| run: | | |
| mkdir -p ~/.m2 | |
| cat <<EOF > ~/.m2/settings.xml | |
| <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
| https://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
| <pluginGroups> | |
| <pluginGroup>org.jenkins-ci.plugins</pluginGroup> | |
| <pluginGroup>org.jenkins-ci.tools</pluginGroup> | |
| </pluginGroups> | |
| <profiles> | |
| <profile> | |
| <id>jenkins</id> | |
| <repositories> | |
| <repository> | |
| <id>repo.jenkins-ci.org</id> | |
| <url>https://repo.jenkins-ci.org/public/</url> | |
| <releases><enabled>true</enabled></releases> | |
| <snapshots><enabled>true</enabled></snapshots> | |
| </repository> | |
| </repositories> | |
| <pluginRepositories> | |
| <pluginRepository> | |
| <id>repo.jenkins-ci.org</id> | |
| <url>https://repo.jenkins-ci.org/public/</url> | |
| <releases><enabled>true</enabled></releases> | |
| <snapshots><enabled>true</enabled></snapshots> | |
| </pluginRepository> | |
| </pluginRepositories> | |
| </profile> | |
| </profiles> | |
| <activeProfiles> | |
| <activeProfile>jenkins</activeProfile> | |
| </activeProfiles> | |
| </settings> | |
| EOF | |
| - name: Build & Package Plugin | |
| run: mvn clean package -DskipTests | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: tekton-client-plugin-java${{ matrix.java-version }} | |
| path: target/*.hpi | |
| retention-days: 7 |