by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    alerossi82
    @alerossi82
    I get this error: [ERROR] Failed to execute goal com.github.spotbugs:spotbugs-maven-plugin:3.1.12.2:spotbugs (spotbugs) on project jenkins-parent: Execution spotbugs
    of goal com.github.spotbugs:spotbugs-maven-plugin:3.1.12.2:spotbugs failed: Plugin com.github.spotbugs:spotbugs-maven-plugin:3.1.12.2 or one of it
    s dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.8.0 at specified path C:\Program Files\Java\jre1.8.0_241/../lib/t
    ools.jar
    Can you please help me?
    Ullrich Hafner
    @uhafner
    I think you need to use a JDK not a JRE when compiling with maven. So set JAVA_HOME to C:\Program Files\Java\[A-JDK]
    When you run mvn -version you see which version is used
    Eric Citaire
    @ericcitaire

    Hi all,

    It seems that docker-java-api-plugin does not have any active maintainer
    anymore.

    I would like to become one, if possible.

    I tried to send a message to jenkinsci-dev@googlegroups.com as suggested here : https://jenkins.io/doc/developer/plugin-governance/adopt-a-plugin/ but I receive a delivery failure notification.

    Thanks in advance.

    Best Regards,
    Eric.

    Marky Jackson
    @markyjackson-taulia

    @ericcitaire Please try sending your message through this link: https://groups.google.com/forum/#!forum/jenkinsci-dev

    I would also open an issue in the plugin repo and tag the last person who merged a PR. Also create an account here and open an issue in the Jenkins-infra https://issues.jenkins-ci.org/secure/Dashboard.jspa

    It can take up to 2 weeks and given all the world chaos it may take a little more so please be patient
    Eric Citaire
    @ericcitaire
    Thanks @markyjackson-taulia for your answer. I'll wait. :)
    Marky Jackson
    @markyjackson-taulia
    I would make sure to go to that google group link about and post your msg again too
    Eric Citaire
    @ericcitaire
    Yes, I've posted a message on the Google group as you suggested.
    Marky Jackson
    @markyjackson-taulia
    Sweet, and thank you
    Calvin Park
    @calvinpark

    Hello! mvn hpi:run fails for https://github.com/jenkinsci/cloudbees-folder-plugin

    cloudbees-folder-plugin master$ mvn hpi:run
    [INFO] Scanning for projects...
    [INFO] 
    [INFO] --------------< org.jenkins-ci.plugins:cloudbees-folder >---------------
    [INFO] Building Folders Plugin 6.13-SNAPSHOT
    [INFO] --------------------------------[ hpi ]---------------------------------
    [INFO] 
    [INFO] >>> maven-hpi-plugin:3.10:run (default-cli) > compile @ cloudbees-folder >>>
    [...]
    [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ cloudbees-folder ---
    [INFO] Changes detected - recompiling the module!
    [INFO] Compiling 45 source files to /Users/calvin/GitRepos/cloudbees-folder-plugin/target/classes
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR : 
    [INFO] -------------------------------------------------------------
    [ERROR] java.nio.file.NoSuchFileException: /Users/calvin/GitRepos/cloudbees-folder-plugin/target/classes/META-INF/annotations/hudson.Extension
    [INFO] 1 error
    [...]

    I'm on macOS. What's needed to compile this plugin? Thanks!

    Oleg Nenashev
    @oleg-nenashev
    @calvinpark you are building the plugin wih JDK11, but the plugin targets old Jenkins core version which does not support it. To build with JDK11, use Jenkins core 2.164+ and recent plugin POM versions. Use JDK8 otherwise
    Calvin Park
    @calvinpark

    Hi @oleg-nenashev I saw some threads about JDK so I was using JDK8 to run the failed build. I'm also using the latest master from cloudbees-floder-plugin repo

    $ /usr/libexec/java_home -V
    Matching Java Virtual Machines (1):
        1.8.0_252, x86_64:    "AdoptOpenJDK 8"    /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
    
    /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
    
    $ git show --name-status
    commit 7ca186c7d82d315d139fb19a05a72dcd2fc66668 (HEAD -> master, origin/master, origin/HEAD)
    Author: Francisco Javier Fernandez Gonzalez <fjfernandez@cloudbees.com>
    Date:   Mon Apr 6 18:40:58 2020 +0200
    
        [maven-release-plugin] prepare for next development iteration
    
    M       pom.xml

    I ended up modifying pom.xml's properties/jenkins.level as you suggested and got it working. Thanks!

    Calvin Park
    @calvinpark

    One more question. mvn hpi:run also fails on Jenkins repo itself

    jenkins master$ mvn hpi:run
    [INFO] Scanning for projects...
    [...]
    [INFO] <<< maven-hpi-plugin:3.13:run (default-cli) < compile @ jenkins-parent <<<
    [INFO] 
    [INFO] 
    [INFO] --- maven-hpi-plugin:3.13:run (default-cli) @ jenkins-parent ---
    [INFO] Logging initialized @7148ms to org.eclipse.jetty.util.log.Slf4jLog
    [...]
    [ERROR] Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.13:run (default-cli) on project jenkins-parent: The parameters 'minimumJavaVersion' for goal org.jenkins-ci.tools:maven-hpi-plugin:3.13:run are missing or invalid -> [Help 1]

    What should I change in this case? Thanks!

    Alex Earl
    @slide
    @calvinpark You can't hpi:run on the jenkins core repo
    Look at this page for more info on building and debugging Jenkins core https://github.com/jenkinsci/jenkins/blob/master/CONTRIBUTING.md#building-and-debugging
    Calvin Park
    @calvinpark
    That worked. Thank you!
    Alex Earl
    @slide
    yw
    Calvin Park
    @calvinpark

    I've added a test to test/src/test/java/hudson/model/ItemGroupMixInTest.java and am trying to run the tests. mvn test -P light-test fails with this error which doesn't seem related to my changes.

    java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState.

    In fact, the same error occurs when the test is run on master branch without any changes. What am I missing? Thank you!

    Calvin Park
    @calvinpark
    Is there a dockerized environment for building and testing Jenkins?
    Mark Waite
    @MarkEWaite
    For building Jenkins, not that I am aware of. For running Jenkins, yes, there are docker images available at https://hub.docker.com/r/jenkins/jenkins
    @calvinpark are you using JDK 8? Most Jenkins development uses JDK 8. JDK 11 is supported for runtime and used in some cases for development as well. If not, do you see the same message when you run with JDK 8? Are you using Maven 3.6.3? If not, do you see the same message with Maven 3.6.3?
    I just checked mvn test -P light-test on my Ubuntu 18.04 running AdoptOpenJDK 1.8.0_242 without any issue.
    Alex Earl
    @slide
    I've seen that issue, but only when running with a JDK 14
    The current PowerMock version in core doesn't work anything above JDK 11 I believe
    Calvin Park
    @calvinpark
    Thanks @MarkEWaite It turned out that the issue is due to brew installer on macOS not setting JENKINS_HOME envvar. It sets the path correctly so the test initiates but as it progresses some parts don't finish. This was seen on both JDK 8 and 11. When JAVA_HOME was set both 8 and 11 succeded
    Cloud Network
    @CloudNetwork
    Hi All, i want to setup email alias in jenkins can anyone help how to setup it
    from jenkins it should send alias email to my gmail id
    Oleg Nenashev
    @oleg-nenashev
    @CloudNetwork Hi, where do you want to set this alias? Jenkins Account, IRC, GitHub or something else?
    Cloud Network
    @CloudNetwork
    i want to setup a job in jenkins as a Script in build action so that i can refresh my job
    i mean VM
    Oleg Nenashev
    @oleg-nenashev
    Would it make sense to create a dedicated Gitter channel for hackfests, similarly to https://gitter.im/jenkinsci/hacktoberfest and #jenkins-hackhouse in IRC? Or would we like to use IRC as a communication channel?
    4 replies
    Thorien
    @Thorien
    I see this is not the right place to open any issues our ask for troubleshooting. What would be the right place. Except for google :-) "jenkins/ssh-slave"
    2 replies
    Alex Earl
    @slide
    If you have an issue with the docker image, you can open an issue on GitHub
    Daniele-Tampieri
    @Daniele-Tampieri
    Hi to everyone. I am a newbie of Jenkins, and I need to ask a perhaps very basic question: can I design software tests that can run on the same function written in different programming languages?
    I am asking this since I and my colleagues are about to deal with legacy code
    According to our proposed work plan, we first will analyze the legacy (Delphi) code, design the tests for all its functions/parts and then rewrite it in C# and Python.
    We thought of reusing the tests developed for the legacy code in order to test if the newly written code behaves in the same (or almost the same) way.
    Thank you very much.
    Gavin Mogan
    @halkeye
    @Daniele-Tampieri so this channel is for new commers that want to contribute to the Jenkins project. Not really support
    I've not really heard of writing tests in one language for an app that is in another language, unless you're talking selenium or like mouse clicks, so integration or e2e tests.
    I would recommend the Jenkins users mailing list
    Or since this is kinda an extreme case maybe hiring one of the companies that specialize in this sort of thing
    Daniele-Tampieri
    @Daniele-Tampieri
    @halkeye Thank you, I'll post on the Jenkins users mailing list and, if things go unmanageable, hire someone.
    Oleg Nenashev
    @oleg-nenashev
    can I design software tests that can run on the same function written in different programming languages?
    This part is actually easy. Yes, you can design it. No, it is not really something being done in Jenkins. You likely need a distributed test framework designed for blackbox testing
    Daniele-Tampieri
    @Daniele-Tampieri
    @oleg-nenashev Thank you very much: where can I find information on distributed test framework for blackbox testing suitable for this purpose?
    Daniele-Tampieri
    @Daniele-Tampieri
    @oleg-nenashev I've googled a bit and I found an interesting title by Gao, Tsao and Wu "Testing and Quality Assurance for Component-Based Software" : it seems dealing with that topic. I'll give a look at it.