forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins-plugin-manager.yaml
63 lines (56 loc) · 1.96 KB
/
jenkins-plugin-manager.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package:
name: jenkins-plugin-manager
version: 2.13.2
epoch: 0
description: Plugin Manager CLI tool for Jenkins
copyright:
- license: MIT
environment:
contents:
packages:
- maven
- openjdk-17
- openjdk-17-default-jvm
- wolfi-base
- wolfi-baselayout
environment:
LANG: en_US.UTF-8
JAVA_HOME: /usr/lib/jvm/java-17-openjdk
pipeline:
- uses: git-checkout
with:
repository: https://github.com/jenkinsci/plugin-installation-manager-tool
tag: ${{package.version}}
expected-commit: d3a6ba3f84bf0223870ad9632b0f74bd861b7539
- runs: |
mvn clean package -DskipTests
mkdir -p ${{targets.destdir}}/usr/share/java/jenkins-plugin-manager
cp plugin-management-cli/target/jenkins-plugin-manager*.jar ${{targets.destdir}}/usr/share/java/${{package.name}}/jenkins-plugin-manager.jar
subpackages:
- name: ${{package.name}}-compat
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/opt
ln -s /usr/share/java/${{package.name}}/jenkins-plugin-manager.jar ${{targets.subpkgdir}}/opt/jenkins-plugin-manager.jar
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)