Skip to content

Commit

Permalink
Merging #724 (from Git; API seems to be down at the moment)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Sep 5, 2023
2 parents 3f1889a + 9e45152 commit 8aed3a6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<extension>
<groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId>
<version>1.6</version>
<version>1.7</version>
</extension>
</extensions>
6 changes: 2 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.67</version>
<version>4.72</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -43,7 +43,7 @@
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.387.x</artifactId>
<version>2163.v2d916d90c305</version>
<version>2378.v3e03930028f2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -66,8 +66,6 @@
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>okhttp-api</artifactId>
<!--Remove once this version is in the bom-->
<version>4.10.0-136.v1d8ce1b_1db_72</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ public void given__configuredInstance__when__uninstantiating__then__deprecatedFi
} else {
trust = "TrustPermission";
}
String originTrait;
String forkTrait;
if (r.jenkins.getPlugin("cloudbees-bitbucket-branch-source") != null) {
originTrait = "org.jenkinsci.plugins.github_branch_source.OriginPullRequestDiscoveryTrait";
forkTrait = "org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait";
} else {
originTrait = "OriginPullRequestDiscoveryTrait";
forkTrait = "ForkPullRequestDiscoveryTrait";
}
assertThat(
DescribableModel.uninstantiate2_(recreated).toString(),
is("@github("
Expand All @@ -84,8 +93,8 @@ public void given__configuredInstance__when__uninstantiating__then__deprecatedFi
+ "repository=repo,"
+ "traits=["
+ "@gitHubBranchDiscovery$org.jenkinsci.plugins.github_branch_source.BranchDiscoveryTrait(strategyId=1), "
+ "@gitHubPullRequestDiscovery$OriginPullRequestDiscoveryTrait(strategyId=1), "
+ "@gitHubForkDiscovery$ForkPullRequestDiscoveryTrait("
+ "@gitHubPullRequestDiscovery$" + originTrait + "(strategyId=1), "
+ "@gitHubForkDiscovery$" + forkTrait + "("
+ "strategyId=2,"
+ "trust=@gitHubTrustPermissions$"
+ trust
Expand Down

0 comments on commit 8aed3a6

Please sign in to comment.