Skip to content
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

[JENKINS-58113] - Remove the Internal Maven Mode from PCT + Use maven from PATH when "-mvn" is not specified #194

Merged

Conversation

oleg-nenashev
Copy link
Member

The internal Maven mode almost never works, and we do not really use it. I suggest we just remove this mode from PCT entirely.

https://issues.jenkins-ci.org/browse/JENKINS-58113

<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use it since we do not longer bundle Maven libs.
http://olamy.blogspot.com/2010/09/use-maven-3-apis-in-hudson-plugin.html from @olamy

@@ -82,84 +81,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jenkins-ci.lib</groupId>
<artifactId>lib-jenkins-maven-embedder</artifactId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yes

@oleg-nenashev
Copy link
Member Author

[2019-09-20T21:40:04.147Z] Checking out from SCM tag artifactId-9.9.99

[2019-09-20T21:40:04.147Z] [ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.664 s <<< FAILURE! - in org.jenkins.tools.test.NonStandardTagHookTest

[2019-09-20T21:40:04.147Z] [ERROR] testActuallyPerformsTheCheckoutWithVersionGreaterThanMinimum(org.jenkins.tools.test.NonStandardTagHookTest)  Time elapsed: 0.19 s  <<< FAILURE!

[2019-09-20T21:40:04.147Z] java.lang.AssertionError: No expection should be thrown when invoking the hook for valid data but got: org.apache.maven.scm.manager.NoSuchScmProviderException: No such provider: 'git'.

[2019-09-20T21:40:04.147Z] 	at org.jenkins.tools.test.NonStandardTagHookTest.testActuallyPerformsTheCheckoutWithVersionGreaterThanMinimum(NonStandardTagHookTest.java:158)

[2019-09-20T21:40:04.147Z] 

[2019-09-20T21:40:04.404Z] [INFO] 

[2019-09-20T21:40:04.404Z] [INFO] Results:

[2019-09-20T21:40:04.404Z] [INFO] 

[2019-09-20T21:40:04.404Z] [ERROR] Failures: 

[2019-09-20T21:40:04.404Z] [ERROR]   NonStandardTagHookTest.testActuallyPerformsTheCheckoutWithVersionGreaterThanMinimum:158 No expection should be thrown when invoking the hook for valid data but got: org.apache.maven.scm.manager.NoSuchScmProviderException: No such provider: 'git'.

[2019-09-20T21:40:04.404Z] [INFO] 

[2019-09-20T21:40:04.404Z] [ERROR] Tests run: 20, Failures: 1, Errors: 0, Skipped: 2

@oleg-nenashev
Copy link
Member Author

https://issues.jenkins-ci.org/browse/JENKINS-59470 for not using the Azure mirror in integration tests. It makes the run quite unstable

@@ -36,8 +36,7 @@
<artifactId>jenkins-core</artifactId>
</dependency>

<!-- Upper bounds between core and Maven Embedder -->
<!-- TODO: All of that stuff happens due to Maven detaching. Would it be sane to include Maven Plugin 3.0 as a JAR instead? -->
<!--TODO: cleanup after removing GAE and the Jenkins core update -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GAE removal is merged, right?

@oleg-nenashev
Copy link
Member Author

oleg-nenashev commented Sep 23, 2019 via email

# Conflicts:
#	plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/MultiParentCompileHook.java
@oleg-nenashev
Copy link
Member Author

Retriggering CI

@oleg-nenashev
Copy link
Member Author

Everything is green except the JCasC test which will fail anyway.
image

#214 was created to work it around

@oleg-nenashev oleg-nenashev merged commit 8614d5e into jenkinsci:master Dec 24, 2019
@jglick jglick mentioned this pull request Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants