-
Notifications
You must be signed in to change notification settings - Fork 55
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
2.176.2 #20
2.176.2 #20
Changes from all commits
c4bde27
1ce0676
37397a0
84d1f34
f1d508c
86a2c68
89c5090
d71f3ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
cd $(dirname $0) | ||
|
||
# expects: $PLUGINS, optionally $TEST | ||
|
||
export SAMPLE_PLUGIN_OPTS=-Dtest=InjectedTest | ||
bash prep.sh | ||
|
||
rm -rf target/local-test | ||
mkdir target/local-test | ||
cp -v sample-plugin/target/{megawar.war,pct.jar} pct.sh target/local-test | ||
|
||
cd target/local-test | ||
if [ -v TEST ] | ||
then | ||
export EXTRA_MAVEN_PROPERTIES="test=$TEST" | ||
fi | ||
bash pct.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
cd $(dirname $0) | ||
|
||
# expects: megawar.war, pct.war, $PLUGINS | ||
|
||
rm -rf pct-work pct-report.xml | ||
|
||
if [ -v MAVEN_SETTINGS ] | ||
then | ||
PCT_S_ARG="-m2SettingsFile $MAVEN_SETTINGS" | ||
else | ||
PCT_S_ARG= | ||
fi | ||
|
||
MAVEN_PROPERTIES=org.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn:jth.jenkins-war.path=$(pwd)/megawar.war | ||
if [ -v EXTRA_MAVEN_PROPERTIES ] | ||
then | ||
MAVEN_PROPERTIES="$MAVEN_PROPERTIES:$EXTRA_MAVEN_PROPERTIES" | ||
fi | ||
|
||
java -jar pct.jar \ | ||
-war $(pwd)/megawar.war \ | ||
-includePlugins $PLUGINS \ | ||
-workDirectory $(pwd)/pct-work \ | ||
-reportFile $(pwd)/pct-report.xml \ | ||
-mvn $(which mvn) \ | ||
$PCT_S_ARG \ | ||
-mavenProperties "$MAVEN_PROPERTIES" \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See also jenkinsci/plugin-compat-tester#71. |
||
-skipTestCache true | ||
|
||
# TODO https://github.com/jenkinsci/workflow-cps-plugin/pull/302 | ||
rm -fv pct-work/workflow-cps/target/surefire-reports/TEST-org.jenkinsci.plugins.workflow.cps.SnippetizerTest.xml | ||
# TODO https://github.com/jenkinsci/structs-plugin/pull/50 | ||
rm -fv pct-work/structs-plugin/plugin/target/surefire-reports/TEST-org.jenkinsci.plugins.structs.describable.DescribableModelTest.xml | ||
# TODO https://github.com/jenkinsci/jenkins/pull/4120 problems with workflow-cps → jquery-detached: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
rm -fv pct-work/structs-plugin/plugin/target/surefire-reports/TEST-InjectedTest.xml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does not suffice, it seems: probably is also seen in |
||
rm -fv pct-work/apache-httpcomponents-client-4-api/target/surefire-reports/TEST-InjectedTest.xml | ||
rm -fv pct-work/ssh-slaves/target/surefire-reports/TEST-InjectedTest.xml | ||
# TODO https://github.com/jenkinsci/matrix-project-plugin/pull/59 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
rm -fv pct-work/matrix-project/target/surefire-reports/TEST-InjectedTest.xml | ||
# TODO https://github.com/jenkinsci/jenkins/pull/4099 pending backport to 2.176.3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
rm -fv pct-work/command-launcher/target/surefire-reports/TEST-hudson.slaves.CommandLauncher2Test.xml | ||
# TODO pending ssh-slaves 1.30.0 with https://github.com/jenkinsci/ssh-slaves-plugin/pull/114 (plus https://github.com/jenkinsci/durable-task-plugin/pull/100): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
rm -fv pct-work/ssh-slaves/target/surefire-reports/TEST-hudson.plugins.sshslaves.verifiers.VerificationStrategyConfigurationTest.xml | ||
rm -fv pct-work/ssh-slaves/target/surefire-reports/TEST-hudson.plugins.sshslaves.SSHLauncherTest.xml | ||
|
||
# produces: pct-report.xml, **/target/surefire-reports/TEST-*.xml |
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.
Made possible by jenkinsci/jenkins-test-harness#100.