-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh plugin #234
Open
shlomomdahan
wants to merge
2
commits into
timols:master
Choose a base branch
from
shlomomdahan:refresh-plugin
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+107
−104
Open
Refresh plugin #234
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd"> | ||
<extension> | ||
<groupId>io.jenkins.tools.incrementals</groupId> | ||
<artifactId>git-changelist-maven-extension</artifactId> | ||
<version>1.8</version> | ||
</extension> | ||
</extensions> |
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,2 @@ | ||
-Pconsume-incrementals | ||
-Pmight-produce-incrementals |
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,4 @@ | ||
buildPlugin(useContainerAgent: true, configurations: [ | ||
[platform: 'linux', jdk: 21], | ||
[platform: 'windows', jdk: 17], | ||
]) |
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,101 +1,88 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>plugin</artifactId> | ||
<version>2.37</version> | ||
</parent> | ||
<parent> | ||
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>plugin</artifactId> | ||
<version>4.88</version> | ||
<relativePath /> | ||
</parent> | ||
|
||
<groupId>com.switchfly</groupId> | ||
<artifactId>gitlab-merge-request-jenkins</artifactId> | ||
<version>2.1.0-SNAPSHOT</version> | ||
<packaging>hpi</packaging> | ||
<groupId>com.switchfly</groupId> | ||
<artifactId>gitlab-merge-request-jenkins</artifactId> | ||
<version>${revision}${changelist}</version> | ||
<packaging>hpi</packaging> | ||
|
||
<name>Gitlab Merge Request Builder</name> | ||
<description>A plugin to build merge requests in Gitlab</description> | ||
<url>https://wiki.jenkins-ci.org/display/JENKINS/Gitlab+Merge+Request+Builder+Plugin</url> | ||
<name>Gitlab Merge Request Builder</name> | ||
<description>A plugin to build merge requests in Gitlab</description> | ||
|
||
<scm> | ||
<connection>scm:git:ssh://github.com/timols/jenkins-gitlab-merge-request-builder-plugin.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/timols/jenkins-gitlab-merge-request-builder-plugin.git</developerConnection> | ||
<url>https://github.com/timols/jenkins-gitlab-merge-request-builder-plugin</url> | ||
<tag>HEAD</tag> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>timols</id> | ||
<name>Tim Olshansky</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
|
||
<developers> | ||
<developer> | ||
<id>timols</id> | ||
<name>Tim Olshansky</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
<scm> | ||
<connection>scm:git:https://github.com/${gitHubRepo}.git</connection> | ||
<developerConnection>scm:git:https://[email protected]/${gitHubRepo}.git</developerConnection> | ||
<tag>${scmTag}</tag> | ||
<url>https://github.com/${gitHubRepo}</url> | ||
</scm> | ||
|
||
<properties> | ||
<!-- which version of Jenkins is this plugin built against? --> | ||
<java.level>8</java.level> | ||
<jenkins.version>2.121</jenkins.version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<java.compiler.version>1.8</java.compiler.version> | ||
</properties> | ||
|
||
<repositories> | ||
<repository> | ||
<id>repo.jenkins-ci.org</id> | ||
<url>http://repo.jenkins-ci.org/public/</url> | ||
</repository> | ||
</repositories> | ||
<properties> | ||
<revision>2.1.0</revision> | ||
<changelist>-SNAPSHOT</changelist> | ||
<gitHubRepo>timols/jenkins-gitlab-merge-request-builder-plugin</gitHubRepo> | ||
<!-- which version of Jenkins is this plugin built against? --> | ||
<jenkins.version>2.452.4</jenkins.version> | ||
</properties> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<!-- JMockit's dependency must be declared before that of JUnit. --> | ||
<dependency> | ||
<groupId>org.jmockit</groupId> | ||
<artifactId>jmockit</artifactId> | ||
<version>1.22</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest-all</artifactId> | ||
<version>1.3</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
<version>2.8.5</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gitlab</groupId> | ||
<artifactId>java-gitlab-api</artifactId> | ||
<version>4.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.jenkins.tools.bom</groupId> | ||
<artifactId>bom-2.452.x</artifactId> | ||
<version>3814.v9563d972079a_</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.jenkins.plugins</groupId> | ||
<artifactId>gson-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gitlab</groupId> | ||
<artifactId>java-gitlab-api</artifactId> | ||
<version>4.0.0</version> | ||
</dependency> | ||
<!-- JMockit's dependency must be declared before that of JUnit. --> | ||
<dependency> | ||
<groupId>org.jmockit</groupId> | ||
<artifactId>jmockit</artifactId> | ||
<version>1.22</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<repositories> | ||
<repository> | ||
<id>repo.jenkins-ci.org</id> | ||
<url>https://repo.jenkins-ci.org/public/</url> | ||
</repository> | ||
</repositories> | ||
|
||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>repo.jenkins-ci.org</id> | ||
<url>http://repo.jenkins-ci.org/public/</url> | ||
</pluginRepository> | ||
<pluginRepository> | ||
<id>repo.jenkins-ci.org</id> | ||
<url>https://repo.jenkins-ci.org/public/</url> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>${java.compiler.version}</source> | ||
<target>${java.compiler.version}</target> | ||
<encoding>${project.build.sourceEncoding}</encoding> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
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
40 changes: 22 additions & 18 deletions
40
src/main/java/org/jenkinsci/plugins/gitlab/models/webhook/OnlyType.java
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,18 +1,22 @@ | ||
package org.jenkinsci.plugins.gitlab.models.webhook; | ||
|
||
import com.google.gson.Gson; | ||
import com.google.gson.GsonBuilder; | ||
import com.google.gson.JsonSyntaxException; | ||
|
||
/** | ||
* Created by lordx_000 on 11/14/2015. | ||
*/ | ||
public class OnlyType { | ||
public String object_kind; | ||
|
||
public static OnlyType fromJson(String jsonString) throws JsonSyntaxException { | ||
Gson g = new GsonBuilder().setPrettyPrinting().create(); | ||
return g.fromJson(jsonString, OnlyType.class); | ||
} | ||
|
||
} | ||
package org.jenkinsci.plugins.gitlab.models.webhook; | ||
|
||
import com.google.gson.Gson; | ||
import com.google.gson.GsonBuilder; | ||
import com.google.gson.JsonSyntaxException; | ||
|
||
/** | ||
* Created by lordx_000 on 11/14/2015. | ||
*/ | ||
public class OnlyType { | ||
public String object_kind; | ||
|
||
public String getObject_kind() { | ||
return object_kind; | ||
} | ||
|
||
public static OnlyType fromJson(String jsonString) throws JsonSyntaxException { | ||
Gson g = new GsonBuilder().setPrettyPrinting().create(); | ||
return g.fromJson(jsonString, OnlyType.class); | ||
} | ||
|
||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use https://plugins.jenkins.io/gitlab-api/dependencies/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @basil . This change
causes a bunch of issues. for example:
likely related to how we are importing the package.
What is the correct approach for handling this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See jenkinsci/gitlab-oauth-plugin#66.