-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from jenkinsci/release/v1.1.0
Release/v1.1.0
- Loading branch information
Showing
136 changed files
with
8,179 additions
and
808 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
--- | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "maven" | ||
directory: "/" | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
interval: monthly |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Setup action" | ||
description: "Prepares for execution - set up Java, Kotlin, Maven" | ||
|
||
inputs: | ||
jdkVersion: | ||
description: "JDK version" | ||
required: false | ||
default: "17" | ||
mavenVersion: | ||
description: "Maven version" | ||
required: false | ||
default: "3.9.4" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up JDK ${{ inputs.jdkVersion }} | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ inputs.jdkVersion }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Setup action" | ||
description: "Runs sonar scans" | ||
|
||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.sonar/caches | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
|
||
- name: Code coverage and publish results | ||
shell: bash | ||
run: > | ||
./mvnw sonar:sonar | ||
-Dorg.gradle.jvmargs="-XX:MaxMetaspaceSize=512m" | ||
-Dresults="build/reports/tests/test,build/test-results/test,build/reports/jacoco/test/html" | ||
-Psonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN | ||
-Dsonar.coverage.jacoco.xmlReportPaths="build/reports/jacoco.xml" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins | ||
|
||
name: cd | ||
on: | ||
workflow_dispatch: | ||
check_run: | ||
types: | ||
- completed | ||
|
||
jobs: | ||
maven-cd: | ||
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1 | ||
secrets: | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
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: '17' | ||
cache: maven | ||
|
||
- name: Build Jenkins Plugin into .hpi | ||
shell: bash | ||
run: ./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: '17' | ||
cache: maven | ||
|
||
- name: Run Unit Tests with Maven | ||
shell: bash | ||
run: ./mvnw test |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
# mvn hpi:run | ||
work | ||
|
||
target | ||
.idea/ | ||
.vscode | ||
.gradle/ | ||
build/ | ||
/*.iml | ||
|
||
|
||
src/test/resources/trash/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-Pconsume-incrementals | ||
-Pmight-produce-incrementals | ||
-DaltDeploymentRepository=maven.jenkins-ci.org::default::https://repo.jenkins-ci.org/releases/ | ||
-Dchangelist.format=%d.v%s |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
wrapperVersion=3.3.1 | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip |
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
Oops, something went wrong.