diff --git a/jenkins-plugin-manager.yaml b/jenkins-plugin-manager.yaml index 2e6334cfa42..265418b452d 100644 --- a/jenkins-plugin-manager.yaml +++ b/jenkins-plugin-manager.yaml @@ -1,6 +1,6 @@ package: name: jenkins-plugin-manager - version: 2.13.1 + version: 2.13.2 epoch: 0 description: Plugin Manager CLI tool for Jenkins copyright: @@ -23,7 +23,7 @@ pipeline: with: repository: https://github.com/jenkinsci/plugin-installation-manager-tool tag: ${{package.version}} - expected-commit: 12533ce620c263845aa9619b7d736fb0054fc298 + expected-commit: d3a6ba3f84bf0223870ad9632b0f74bd861b7539 - runs: | mvn clean package -DskipTests @@ -42,3 +42,22 @@ update: enabled: true github: identifier: jenkinsci/plugin-installation-manager-tool + +test: + environment: + contents: + packages: + - openjdk-17 + - openjdk-17-default-jvm + pipeline: + - name: "Check jenkins-plugin-manager Installation" + runs: | + if [ -f "/usr/share/java/jenkins-plugin-manager/jenkins-plugin-manager.jar" ]; then + echo "jenkins-plugin-manager JAR found." + else + echo "jenkins-plugin-manager JAR not found!" && exit 1 + fi + - name: "Test jenkins-plugin-manager Basic Functionality" + runs: | + java -jar /usr/share/java/jenkins-plugin-manager/jenkins-plugin-manager.jar --help || (echo "jenkins-plugin-manager test failed!" && exit 1) + java -jar /usr/share/java/jenkins-plugin-manager/jenkins-plugin-manager.jar --list || (echo "Plugin list test failed!" && exit 1)