Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    NehaMittal3010
    @NehaMittal3010
    [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
    Kris Stern
    @krisstern:matrix.org
    [m]
    I think the latest one will be fine, it is just that I have been using 2.324 for another plugin and haven't upgraded yet
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org ok can u tell me what changes u did in pom.xml for Active choice plugin
    Kris Stern
    @krisstern:matrix.org
    [m]
    The 2.319.2 is the latest LTS version, should work too
    NehaMittal3010
    @NehaMittal3010
    yes
    Kris Stern
    @krisstern:matrix.org
    [m]
    I updated the versions of the packages for the dependencies
    Used the JQuery 3 API plugin instead of the original one
    NehaMittal3010
    @NehaMittal3010
    can you share ur pom.xml file content
    Kris Stern
    @krisstern:matrix.org
    [m]
    It's just above
    I copied and pasted the whole file
    I think the only thing you will need to change is the Jenkins version
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org sorry i am not able to see where u have copied and pasted the file
    Kris Stern
    @krisstern:matrix.org
    [m]
    Do you see my message from 16 minutes passed the hour?
    NehaMittal3010
    @NehaMittal3010
    no
    Kris Stern
    @krisstern:matrix.org
    [m]
    Do you see the code below the line "This one" just now?
    NehaMittal3010
    @NehaMittal3010
    i see only :- **Do you see the code below the line "This one" just now?*
    Kris Stern
    @krisstern:matrix.org
    [m]
    Hang on
    NehaMittal3010
    @NehaMittal3010
    yes i got it
    Kris Stern
    @krisstern:matrix.org
    [m]
    I have just uploaded the file