Skip to content

Commit a52a546

Browse files
authored
Merge branch 'master' into stable-1.5.x
2 parents 7762980 + f6ff8aa commit a52a546

File tree

5 files changed

+40
-16
lines changed

5 files changed

+40
-16
lines changed

.gitpod.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
tasks:
2+
- init: mvn clean verify
3+
4+
vscode:
5+
extensions:
6+
- bierner.markdown-preview-github-styles
7+
- vscjava.vscode-java-pack
8+
- redhat.java
9+
- vscjava.vscode-java-debug
10+
- vscjava.vscode-java-dependency
11+
- vscjava.vscode-java-test
12+
- vscjava.vscode-maven

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<extension>
33
<groupId>io.jenkins.tools.incrementals</groupId>
44
<artifactId>git-changelist-maven-extension</artifactId>
5-
<version>1.3</version>
5+
<version>1.4</version>
66
</extension>
77
</extensions>

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ Also make sure you have chosen the appropriate GitLab instance from the 'GitLab
345345
}
346346
}
347347
```
348-
* Or use the `updateGitlabCommitStatus` step to use a custom value for updating the commit status. You could use try/catch blocks or other logic to send fine-grained status of the build to GitLab. Valid statuses are defined by GitLab and documented here: https://docs.gitlab.com/ce/api/pipelines.html
348+
* Or use the `updateGitlabCommitStatus` step to use a custom value for updating the commit status. You could use try/catch blocks or other logic to send fine-grained status of the build to GitLab. Valid statuses are defined by GitLab and documented here: https://docs.gitlab.com/ee/api/commits.html#post-the-build-status-to-a-commit
349349
```groovy
350350
node() {
351351
stage('Checkout') { checkout <your-scm-config> }
@@ -393,6 +393,9 @@ pipeline {
393393
success {
394394
updateGitlabCommitStatus name: 'build', state: 'success'
395395
}
396+
aborted {
397+
updateGitlabCommitStatus name: 'build', state: 'canceled'
398+
}
396399
}
397400
options {
398401
gitLabConnection('your-gitlab-connection-name')
@@ -403,6 +406,7 @@ pipeline {
403406
stages {
404407
stage("build") {
405408
steps {
409+
updateGitlabCommitStatus name: 'build', state: 'running'
406410
echo "hello world"
407411
}
408412
}

pom.xml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.jenkins-ci.plugins</groupId>
66
<artifactId>plugin</artifactId>
7-
<version>4.40</version>
7+
<version>4.48</version>
88
<relativePath />
99
</parent>
1010
<artifactId>gitlab-plugin</artifactId>
@@ -16,11 +16,11 @@
1616
<properties>
1717
<revision>1.5.37</revision>
1818
<changelist>-SNAPSHOT</changelist>
19-
<jenkins.version>2.289.3</jenkins.version>
19+
<jenkins.version>2.346.3</jenkins.version>
2020
<spotbugs.threshold>High</spotbugs.threshold> <!-- TODO fix violations -->
2121
<gitHubRepo>jenkinsci/${project.artifactId}</gitHubRepo>
2222
<hpi.compatibleSinceVersion>1.4.0</hpi.compatibleSinceVersion>
23-
<mockserver.version>5.13.0</mockserver.version>
23+
<mockserver.version>5.14.0</mockserver.version>
2424
</properties>
2525

2626

@@ -242,6 +242,10 @@
242242
<groupId>org.jetbrains</groupId>
243243
<artifactId>annotations</artifactId>
244244
</exclusion>
245+
<exclusion>
246+
<groupId>org.jenkins-ci.main</groupId>
247+
<artifactId>jenkins-test-harness</artifactId>
248+
</exclusion>
245249
</exclusions>
246250
</dependency>
247251
<dependency>
@@ -276,8 +280,15 @@
276280
<dependency>
277281
<groupId>org.postgresql</groupId>
278282
<artifactId>postgresql</artifactId>
279-
<version>42.4.0</version>
283+
<version>42.5.0</version>
280284
<scope>test</scope>
285+
<exclusions>
286+
<!-- Upper bounds with Guava -->
287+
<exclusion>
288+
<groupId>org.checkerframework</groupId>
289+
<artifactId>checker-qual</artifactId>
290+
</exclusion>
291+
</exclusions>
281292
</dependency>
282293
<dependency>
283294
<groupId>org.jenkins-ci.plugins</groupId>
@@ -304,11 +315,6 @@
304315

305316
<dependencyManagement>
306317
<dependencies>
307-
<dependency>
308-
<groupId>com.google.guava</groupId>
309-
<artifactId>guava</artifactId>
310-
<version>18.0</version>
311-
</dependency>
312318
<dependency>
313319
<groupId>commons-io</groupId>
314320
<artifactId>commons-io</artifactId>
@@ -317,8 +323,8 @@
317323
<dependency>
318324
<!-- Pick up common dependencies for the selected LTS line: https://github.com/jenkinsci/bom#usage -->
319325
<groupId>io.jenkins.tools.bom</groupId>
320-
<artifactId>bom-2.289.x</artifactId>
321-
<version>1438.v6a_2c29d73f82</version>
326+
<artifactId>bom-2.346.x</artifactId>
327+
<version>1643.v1cffef51df73</version>
322328
<scope>import</scope>
323329
<type>pom</type>
324330
</dependency>
@@ -330,7 +336,7 @@
330336
<dependency>
331337
<groupId>joda-time</groupId>
332338
<artifactId>joda-time</artifactId>
333-
<version>2.10.14</version>
339+
<version>2.12.0</version>
334340
</dependency>
335341
<dependency>
336342
<groupId>net.sf.jopt-simple</groupId>
@@ -445,7 +451,7 @@
445451
<plugin>
446452
<groupId>io.fabric8</groupId>
447453
<artifactId>docker-maven-plugin</artifactId>
448-
<version>0.40.1</version>
454+
<version>0.40.2</version>
449455
<configuration>
450456
<verbose>true</verbose>
451457
<images>

src/test/java/com/dabsquared/gitlabjenkins/workflow/UpdateGitLabCommitStatusStepTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ public void updateGitlabCommitStatus() throws Throwable {
4848
String pipelineText =
4949
IOUtils.toString(
5050
getClass().getResourceAsStream("pipeline/updateGitlabCommitStatus.groovy"));
51-
rr.then(j -> _updateGitlabCommitStatus(j, port, pipelineText));
51+
rr.then(j -> {
52+
_updateGitlabCommitStatus(j, port, pipelineText);
53+
});
5254
}
5355

5456
private static void _updateGitlabCommitStatus(JenkinsRule j, int port, String pipelineText)

0 commit comments

Comments
 (0)