Skip to content
Permalink
Browse files
[FIXED JENKINS-41453] Pick up the scm-api 2.0.2-beta-2
- Also address code review comments
  • Loading branch information
stephenc committed Jan 25, 2017
1 parent 5f102ac commit 04636a5028edccfd4b93dfbf7a93d6c171eccb1d
Showing with 8 additions and 3 deletions.
  1. +1 −1 pom.xml
  2. +7 −2 src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMHead.java
@@ -35,7 +35,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>2.0.2-beta-1</version>
<version>2.0.2-beta-2</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
@@ -49,6 +49,9 @@
private final String sourceOwner;
private final String sourceRepo;
private final String sourceBranch;
/**
* Only populated if de-serializing instances.
*/
private transient Metadata metadata;

PullRequestSCMHead(GHPullRequest pr, String name, boolean merge) {
@@ -148,8 +151,10 @@ public String getSourceRepo() {
return sourceRepo;
}

@Restricted(NoExternalUse.class)
public static class Metadata {
/**
* Holds legacy data so we can recover the details.
*/
private static class Metadata {
private final int number;
private final String url;
private final String userLogin;

0 comments on commit 04636a5

Please sign in to comment.