Skip to content

Commit

Permalink
Workaround for subversion
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Jul 29, 2022
1 parent a411a73 commit 503c1e6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pct.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,24 @@ if [[ $PLUGINS =~ jsch ]] || [[ $PLUGINS =~ okhttp-api ]]; then
MAVEN_PROPERTIES+=:jenkins-test-harness.version=1812.v6d4e97d91fd8
fi

#
# The Subversion and Git plugins both define a descriptor with the "phabricator" symbol, causing
# duplicate symbol errors with JCasC. As a temporary workaround, we exclude the Subversion plugin
# from the dependency tree when running the Git plugin's test suite.
#
# TODO When jenkinsci/subversion-plugin#273 is merged and released, and when this repository has
# adopted that release, this can be deleted.
#
if [[ $PLUGINS == git ]]; then
mkdir pct-work
pushd pct-work
jar xf ../megawar.war
rm -fv WEB-INF/plugins/subversion.hpi
jar c0Mf ../megawar.war *
popd
rm -rf pct-work
fi

#
# Testing plugins against a version of Jenkins that requires Java 11 exposes
# jenkinsci/plugin-pom#563. This was fixed in plugin parent POM 4.42, but many plugins under test
Expand Down

0 comments on commit 503c1e6

Please sign in to comment.