Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    NehaMittal3010
    @NehaMittal3010
    [DEBUG] Message scheme: color
    [DEBUG] Message styles: debug info warning error success failure strong mojo project
    [DEBUG] Reading global settings from /usr/share/apache-maven/conf/settings.xml
    [DEBUG] Reading user settings from /root/.m2/settings.xml
    [DEBUG] Reading global toolchains from /usr/share/apache-maven/conf/toolchains.xml
    [DEBUG] Reading user toolchains from /root/.m2/toolchains.xml
    [DEBUG] Using local repository at /root/.m2/repository
    [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /root/.m2/repository
    [INFO] Scanning for projects...
    [DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.jenkins-ci.org/public/
    [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.jenkins-ci.org/public/
    Downloading from repo.jenkins-ci.org: https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/plugin/4.33/plugin-4.33.pom
    [DEBUG] Writing tracking file /root/.m2/repository/org/jenkins-ci/plugins/plugin/4.33/plugin-4.33.pom.lastUpdated
    [DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
    [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
    Downloading from central: https://repo.maven.apache.org/maven2/org/jenkins-ci/plugins/plugin/4.33/plugin-4.33.pom
    [DEBUG] Writing tracking file /root/.m2/repository/org/jenkins-ci/plugins/plugin/4.33/plugin-4.33.pom.lastUpdated
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for org.biouno:uno-choice:2.5.7: Could not transfer artifact org.jenkins-ci.plugins:plugin:pom:4.33 from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/): Network is unreachable (connect failed) and 'parent.relativePath' points at no local POM @ line 6, column 13
    @
    [ERROR] The build could not read 1 project -> [Help 1]
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for org.biouno:uno-choice:2.5.7: Could not transfer artifact org.jenkins-ci.plugins:plugin:pom:4.33 from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/): Network is unreachable (connect failed) and 'parent.relativePath' points at no local POM @ line 6, column 13
    issue looks to be in <groupId>org.biouno</groupId>
    <artifactId>uno-choice</artifactId>
    <version>2.5.7</version>
    <packaging>hpi</packaging>
    as its not present at https://repo.jenkins-ci.org/public/
    Ulli Hafner
    @uhafner:matrix.org
    [m]

    Maven does not find the parent pom, but I see it here:
    https://repo.jenkins-ci.org/artifactory/public/org/jenkins-ci/plugins/plugin/4.33/

    Your error indicates a networking problem.

    BTW: Please upgrade your Maven version to a newer one (3.8.4 is the current release)

    Abdullah Ranginwala
    @abdullah_rang_twitter
    Hello everyone, I am a new contributor to the jenkins ecosystem. I am trying to setup the jenkins-infra/pipeline-steps-doc-generator project on my system but there seems to be multiple errors
    Screenshot 2022-02-01 at 6.14.02 PM.png
    4 replies
    some help here would be really appreciated
    Abdullah Ranginwala
    @abdullah_rang_twitter
    Also, would I have to switch back to Java 11 or would this work with Java 16
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Typically, all builds in Jenkins eco system require Java 11 to build (some still work with Java 8). Everything else is too high.
    So do not use Java 16.
    Kris Stern
    @krisstern:matrix.org
    [m]
    Hi @abdullah_rang_twitter I think you can manually patch the required jenkins.io codebase using the info provided in the screenshot. That is, the repo at https://github.com/jenkins-infra/jenkins.io. If it still doesn't work do let us know.
    The git diff output shown is for your reference only.
    Kris Stern
    @krisstern:matrix.org
    [m]
    So generally speaking we use the LTS versions of Java for Jenkins, like Java 8 and 11, over the non-LTS ones like Java 16
    Abdullah Ranginwala
    @abdullah_rang_twitter
    Understood, thanks!
    NehaMittal3010
    @NehaMittal3010
    Hi All i am trying to update <dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>jquery</artifactId>
    <version>3.6.0</version>
    </dependency>
    in Active choice Plugin but getting below error:-
    [INFO] Running InjectedTest
    [ERROR] Tests run: 21, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.126 s <<< FAILURE! - in InjectedTest
    [ERROR] org.jvnet.hudson.test.PluginAutomaticTestBuilder$OtherTests.testPluginActive Time elapsed: 0.008 s <<< ERROR!
    java.lang.Error: Plugin jquery3-api failed to start
    at org.jvnet.hudson.test.PluginAutomaticTestBuilder$OtherTests.testPluginActive(PluginAutomaticTestBuilder.java:99)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at junit.framework.TestCase.runTest(TestCase.java:177)
    at junit.framework.TestCase.runBare(TestCase.java:142)
    at junit.framework.TestResult$1.protect(TestResult.java:122)
    at junit.framework.TestResult.runProtected(TestResult.java:142)
    at junit.framework.TestResult.run(TestResult.java:125)
    at junit.framework.TestCase.run(TestCase.java:130)
    at junit.framework.TestSuite.runTest(TestSuite.java:241)
    at junit.framework.TestSuite.run(TestSuite.java:236)
    at org.jvnet.hudson.test.junit.GroupedTest.runGroupedTests(GroupedTest.java:67)
    at org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.doTests(JellyTestSuiteBuilder.java:152)
    at org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.access$100(JellyTestSuiteBuilder.java:138)
    at org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite$2.call(JellyTestSuiteBuilder.java:160)
    at org.jvnet.hudson.test.HudsonTestCase$WebClient$5.run(HudsonTestCase.java:1516)
    at org.jvnet.hudson.test.ClosureExecuterAction.doIndex(ClosureExecuterAction.java:53)
    at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
    at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
    at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
    at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
    at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
    at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:27)
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
    at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456)
    Can someone help me on this?
    [ERROR] Errors:
    [ERROR] TestGroovyScriptParametersOrder.testGroovyScriptParametersOrder:119 ? Script T...
    [ERROR] TestParametersXssVulnerabilities.testChoicesParameterXss:86 ? Script TypeError...
    [ERROR] TestGroovyScriptXssVulnerabilities.testChoicesParameterXss:87 ? Script TypeErr...
    [ERROR] TestGroovyScriptXssVulnerabilities.testChoicesParameterXssWithMaps:121 ? Script
    [ERROR] TestGroovyScriptXssVulnerabilities.testReferenceParameterXss:159 ? Script Type...
    [ERROR] TestDynamicReferenceXss.testChoicesParameterXss:93 ? Script TypeError: Cannot ...
    [ERROR] TestXssParameterNameBrowserConsole.testCascadeChoiceParameterXss:125 ? Script ...
    [ERROR] TestXssParameterNameBrowserConsole.testChoiceParameterXss:90 ? Script TypeErro...
    [ERROR] TestXssParameterNameBrowserConsole.testDynamicReferenceParameterXss:159 ? Script
    [ERROR] PluginAutomaticTestBuilder$OtherTests.testPluginActive:99 Plugin jquery3-api ...
    [INFO]
    [ERROR] Tests run: 63, Failures: 0, Errors: 10, Skipped: 0
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 01:54 min
    [INFO] Finished at: 2022-02-01T14:33:38Z
    [INFO] Final Memory: 41M/154M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) on project uno-choice: There are test failures.
    [ERROR]
    [ERROR] Please refer to /root/final/active-choices-plugin/target/surefire-reports for the individual test results.
    [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    Kris Stern
    @krisstern:matrix.org
    [m]
    Hi @NehaMittal3010 Let me try and see if I could reproduce your error on my laptop.
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org sure
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org its failing with <dependency>
    <groupId>io.jenkins.plugins</groupId>
    <artifactId>jquery3-api</artifactId>
    <version>3.6.0-2</version>
    </dependency>
    Kris Stern
    @krisstern:matrix.org
    [m]
    Okay, so it was building without failure(s) before this change?
    NehaMittal3010
    @NehaMittal3010
    but working with<groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>jquery</artifactId>
    <version>1.12.4-1</version>
    jquery: 1.12.4 has Security Vulnerabilities so want to Update to jquery: 3/X
    Kris Stern
    @krisstern:matrix.org
    [m]
    Okay, I will need some time to do the testing for you...
    NehaMittal3010
    @NehaMittal3010
    ok
    Kris Stern
    @krisstern:matrix.org
    [m]
    Yeah, let me try the 2021 version of jquery at https://mvnrepository.com/artifact/org.webjars/jquery/3.6.0
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org sure
    Mark Waite
    @MarkEWaite
    @NehaMittal3010 there is a Jenkins JQuery 3 API plugin that you would be better served by using it as a dependency rather than depending on the JQuery 3.6.0 library directly. Using the JQuery 3 API plugin assures that you'll use the JQuery version that is already loaded in used in Jenkins by other plugins. See https://plugins.jenkins.io/jquery3-api/ for info on the library. Ulli Hafner has some guidance on using the API plugin effectively
    Kris Stern
    @krisstern:matrix.org
    [m]
    Sorry I think I will need to try it for the same one you tried: https://mvnrepository.com/artifact/io.jenkins.plugins/jquery3-api/3.6.0-2
    NehaMittal3010
    @NehaMittal3010
    @MarkEWaite i have used JQuery 3 API still i am getting error @uhafner:matrix.org can you please help me here
    @krisstern:matrix.org yes
    Kris Stern
    @krisstern:matrix.org
    [m]
    May take a while though to build
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org i am doing mvn verify on that only i am getting the error.. no issues please take your time..
    Kris Stern
    @krisstern:matrix.org
    [m]
    No problem... But there is one thing I would like to make sure though, cause I see this jquery dependency in the active-choices-plugin instead of the other options discussed above:
    <dependency>
        <groupId>org.kohsuke.stapler</groupId>
        <artifactId>stapler-adjunct-jquery</artifactId> <!-- TODO why is this not using org.jenkins-ci.plugins:jquery instead?! -->
        <version>1.12.4-0</version>
        <exclusions>
            <exclusion> <!-- TODO INFRA-1310 pending 1.12.4-0 -->
                <groupId>org.kohsuke.stapler</groupId>
                <artifactId>stapler</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    @NehaMittal3010: I am wondering if this is what you had originally too?
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org yes, as jquery is dependent in active-choices-plugin so trying to update from stapler-adjunct-jquery:1.12.4-0 to latest jquery
    Kris Stern
    @krisstern:matrix.org
    [m]
    Okay, I see
    Kris Stern
    @krisstern:matrix.org
    [m]
    Looks like it is due to some dependency issues...
    Looks like the pom.xml file will need to be revamped significantly (with inevitable code rewrite likely), before it can get working for this upgrade...
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org Can you please help me on priority if possible?
    Kris Stern
    @krisstern:matrix.org
    [m]
    Give me a few moments to see if this is feasible...
    Kris Stern
    @krisstern:matrix.org
    [m]
    But I am not sure if this is really what you want to do. BTW, I am using Jenkins version 2.324 as stated in the pom.xml file above.
    And with Java 11
    Once the build is "okay" you could then check at http://localhost:8080/jenkins/ locally
    Well I did get the line printed at the very end:
    ... INFO    hudson.WebAppMain$3#run: Jenkins is fully up and running
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org where Jenkins version 2.324 is stated in pom.xml .. its fine for me if u use 2.324 or latest Jenkins version as well. i am also using java 11.0.14 and jenkins 2.319.2...
    i am trying to build .hpi file of plugin then planning to push on the server where jenkins is running