├── .github
├── dependabot.yml
└── workflows
│ ├── cd.yml
│ └── jenkins-security-scan.yml
├── .gitignore
├── .mvn
├── extensions.xml
└── maven.config
├── Jenkinsfile
├── README.md
├── pom.xml
└── src
└── main
└── resources
└── index.jelly
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | - package-ecosystem: maven
4 | directory: /
5 | schedule:
6 | interval: weekly
7 | reviewers:
8 | - "jetersen"
9 | - package-ecosystem: github-actions
10 | directory: /
11 | schedule:
12 | interval: weekly
13 | reviewers:
14 | - "jetersen"
15 |
--------------------------------------------------------------------------------
/.github/workflows/cd.yml:
--------------------------------------------------------------------------------
1 | # Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins
2 |
3 | name: cd
4 | on:
5 | workflow_dispatch:
6 | check_run:
7 | types:
8 | - completed
9 |
10 | jobs:
11 | maven-cd:
12 | uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
13 | secrets:
14 | MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
15 | MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
16 |
--------------------------------------------------------------------------------
/.github/workflows/jenkins-security-scan.yml:
--------------------------------------------------------------------------------
1 | name: Jenkins Security Scan
2 |
3 | on:
4 | push:
5 | branches:
6 | - master
7 | pull_request:
8 | types: [ opened, synchronize, reopened ]
9 | workflow_dispatch:
10 |
11 | permissions:
12 | security-events: write
13 | contents: read
14 | actions: read
15 |
16 | jobs:
17 | security-scan:
18 | uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2
19 | with:
20 | java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate.
21 | # java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default.
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 | work
3 | *.iml
4 | .idea
5 | pom.xml.releaseBackup
6 | release.properties
7 |
--------------------------------------------------------------------------------
/.mvn/extensions.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | io.jenkins.tools.incrementals
4 | git-changelist-maven-extension
5 | 1.8
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.mvn/maven.config:
--------------------------------------------------------------------------------
1 | -Pconsume-incrementals
2 | -Pmight-produce-incrementals
3 | -Dchangelist.format=%d.v%s
4 |
--------------------------------------------------------------------------------
/Jenkinsfile:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env groovy
2 |
3 | /* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */
4 | buildPlugin(
5 | useContainerAgent: true,
6 | configurations: [
7 | [platform: 'linux', jdk: 21],
8 | [platform: 'linux', jdk: 17],
9 | ])
10 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://ci.jenkins.io/job/Plugins/job/gitlab-api-plugin/job/master/)
2 | [](https://github.com/jenkinsci/gitlab-api-plugin/releases/latest)
3 | [](https://gitter.im/jenkinsci/gitlab-branch-source-plugin)
4 | [](https://plugins.jenkins.io/gitlab-api)
5 |
6 | # gitlab-api-plugin
7 | Wraps [GitLab4J API](https://github.com/gitlab4j/gitlab4j-api) libary into a plugin
8 |
9 | Install plugin with
10 |
11 | ```
12 | mvn clean install
13 | ```
14 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 4.0.0
4 |
5 | org.jenkins-ci.plugins
6 | plugin
7 | 5.9
8 |
9 |
10 |
11 | io.jenkins.plugins
12 | gitlab-api
13 | ${revision}-${changelist}
14 | hpi
15 |
16 |
17 | 5.6.0
18 | 999999-SNAPSHOT
19 |
20 | 2.479
21 | ${jenkins.baseline}.1
22 | jenkinsci/${project.artifactId}-plugin
23 |
24 |
25 | GitLab API Plugin
26 | Wraps GitLab4J API into a plugin
27 | https://github.com/jenkinsci/${project.artifactId}-plugin
28 |
29 |
30 | https://issues.jenkins-ci.org/browse/JENKINS-57445?jql=project%20%3D%20JENKINS%20AND%20component%20%3D%20gitlab-api-plugin
31 | JIRA
32 |
33 |
34 |
35 |
36 | MIT License
37 | https://opensource.org/licenses/MIT
38 | repo
39 |
40 |
41 |
42 |
43 |
44 | baymac
45 | Parichay Barpanda
46 | parichay.barpanda@gmail.com
47 |
48 |
49 |
50 |
51 | scm:git:https://github.com/${gitHubRepo}.git
52 | scm:git:git@github.com:${gitHubRepo}.git
53 | https://github.com/${gitHubRepo}
54 | ${scmTag}
55 |
56 |
57 |
58 |
59 |
60 | io.jenkins.tools.bom
61 | bom-${jenkins.baseline}.x
62 | 3893.v213a_42768d35
63 | pom
64 | import
65 |
66 |
67 |
68 |
69 |
70 |
71 | io.jenkins.plugins
72 | javax-activation-api
73 |
74 |
75 | io.jenkins.plugins
76 | jersey2-api
77 |
78 |
79 | org.gitlab4j
80 | gitlab4j-api
81 | ${revision}
82 |
83 |
84 |
85 | jakarta.activation
86 | jakarta.activation-api
87 |
88 |
89 |
90 | jakarta.servlet
91 | jakarta.servlet-api
92 |
93 |
94 |
95 | org.glassfish.jersey.connectors
96 | jersey-apache-connector
97 |
98 |
99 | org.glassfish.jersey.core
100 | jersey-client
101 |
102 |
103 | org.glassfish.jersey.inject
104 | jersey-hk2
105 |
106 |
107 | org.glassfish.jersey.media
108 | jersey-media-json-jackson
109 |
110 |
111 | org.glassfish.jersey.media
112 | jersey-media-multipart
113 |
114 |
115 |
116 | uk.org.webcompere
117 | system-stubs-jupiter
118 |
119 |
120 |
121 |
122 |
123 | org.jenkins-ci.plugins
124 | apache-httpcomponents-client-4-api
125 |
126 |
127 | org.jenkins-ci.plugins
128 | jackson2-api
129 |
130 |
131 |
132 |
133 |
134 | repo.jenkins-ci.org
135 | https://repo.jenkins-ci.org/public/
136 |
137 |
138 |
139 |
140 | repo.jenkins-ci.org
141 | https://repo.jenkins-ci.org/public/
142 |
143 |
144 |
145 |
146 |
--------------------------------------------------------------------------------
/src/main/resources/index.jelly:
--------------------------------------------------------------------------------
1 |
2 |
3 | This plugin provides
GitLab4J API for other plugins.
4 |
5 |
--------------------------------------------------------------------------------