Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    halkeye
    @halkeye:g4v.dev
    [m]
    Yea your asking about using Jenkins. This channel is for creating Jenkins.
    Theres no official slack
    Christian Petersson
    @Issen007
    ok, thanks. :)
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Please do not cross post. This is a room for people new to contributing to Jenkins.
    1 reply
    Andrius Semionovas
    @neworld
    Hello. I am pretty new and I am not sure if this is a good channel to ask. I am stuck with plugin release, which fixes a crash. I am getting Received status code 401 from server: Unauthorized, even I can connect to the repository and deploy artifacts manually. Also, I tried setup automatic CD, but the problem is all scripts are prepared only for maven, but I am using gradle. I deployed artifacts manually, but it seems update center never gets update. What is the correct way to publish plugins nowadays from gradle build system?
    6 replies
    halkeye
    @halkeye:g4v.dev
    [m]
    @neworld: there's a bunch of scripts about it on the dev mailing list (as a plugin author you should be subscribed). Common issues is you got locked out (try logging into jira). Wrong paths (make sure the path your publishing to matches the ones in the repository permission updater). Snapshot in version. Um. Probably a few others
    5 replies
    halkeye
    @halkeye:g4v.dev
    [m]
    oh i assumed you were a first publisher not a re-publisher. I think at some point passwords had to be encrypted, i don't know if gradle uses ~/.m2/mvn.xml thingie
    2 replies
    oh mark's using threads. One day threads will work properly on matrix too
    Steven
    @justusbunsi
    Hi. I'm currently trying to write an integration test for the configuration-as-code plugin and have massive trouble with plugin dependencies.
    Am I at the right place to get help? If not, could you point me to the right place please?
    Ulli Hafner
    @uhafner:matrix.org
    [m]

    First of all: you should not cross post because you did not get an answer in 5 minutes.

    So basically both channels are appropriate for your question. Are you writing the test for your plugin or a test for the configuration-as-code plugin itself? Additionally, what exactly is your "massive trouble", do you have some logs?

    Steven
    @justusbunsi

    Sorry for cross posting. Wasn't sure which one would be better. Won't do this again. 😳

    I'm writing a test for how to configure the Gitea plugin (jenkinsci/configuration-as-code-plugin#1791). Tests pass for configuring Gitea servers globally. Now I'd like to add a test for configuring an organization folder with Gitea as "SCM source" using job-dsl. Right now it fails due to missing "branch-api" plugin. The Gitea plugin depends on it. Within the test suite for configuration-as-code that "branch-api" plugin it is already added to the test scope so based on the developers guide for testing with dependent plugins this should work.
    In the build logs it says that the plugin does not match the minimum required version (https://github.com/jenkinsci/configuration-as-code-plugin/runs/4341874964?check_suite_focus=true#step:5:556). This confuses me because I've tried to set the version to the latest one and it doesn't work either. That makes me think that the "branch-api" plugin is not loaded at all or failed to load silently.
    After experimenting a bit with various job-dsl scripts (e.g. just configuring a freestyle job) it seems to be related to the "organizationFolder" block. Having that in the script to load breaks the test execution and gives that error message. So I'm guessing that I'm not yet at the point where Gitea plugin is active as it breaks prior to that.

    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Ok, this is not a "beginner question": I have no clue what breaks the test here. You can set a breakpoint before the exception and inspect the Jenkins under test which plugins are already loaded. From the pom.xml it looks like that the latest branch-api plugin is installed. Which ist your Jenkins version in the Gitea plugin? Maybe this version is not compatible with the version in jcasc (just a guess).
    Steven
    @justusbunsi
    Gitea plugin requires at least Jenkins 2.289.1 and is itself fully compatible jcasc. Updating that to match the Jenkins version defined in the jcasc plugin didn't work.
    I also tried using the @WithPlugin annotation on the test case, which tries to load the "branch-api" plugin but fails as it depends on two other plugins. I've no idea if this annotation overrides all the other potentially loaded plugins or this is a hint for missing plugins in the test scope. I've added both plugins (cloudbees-folder, scm-api) to the pom.xml but no success.
    Regarding breakpoints: Didn't get the test execution working with VSCode. Have tried to log the loaded plugins earlier but the log didn't appear. Maybe I did something wrong.
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Maybe it helps if you ask in the PR as well? Maybe one of the reviewers can help.
    Steven
    @justusbunsi
    Left a comment in the PR. Thank you for your time so far.
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Wrong channel: This is a room for people new to contributing to Jenkins.
    User channel jenkinsci/jenkins
    mhonest
    @mhonest
    Apologies, where should I post this?
    Thank you
    Bijayalaxmi sahoo
    @Bijaya94503_twitter
    Hello i lost my password and user id for jenkins. Unable to login.what should i do.
    halkeye
    @halkeye:g4v.dev
    [m]
    @Bijaya94503_twitter: reset your password on https://beta.accounts.jenkins.io/
    Lukas
    @TechnicFreakz
    Hello everyone,
    I was doing the plugin development tutorial and after I was done I wanted to try to expand it.
    So I just wanted to add another checkbox for the configuration that says Hello in german, but the checkbox keeps unchecking itself after saving. Does someone have an idea why that might be?
    I did: add boolean in HelloWorldBuilder, getter(isUseGerman) in HWB, setter in HWB, add condition in perform() in HWB, add QueryParameter and short validation similar to the one for french in FormValidation in HWB, add entry in config.jelly for HWB in advanced similar to the one for french, add stuff in properties and help files similar to the french stuff and added methods in Messages.java similar to the one for french in target/generated-sources/localizer/...
    hantho
    @hantho

    Hi all. I'd want to contribute to the GitLab plugin but I can't register for a new account at https://accounts.jenkins.io/
    I get an error page with the message "I am sorry to no be able to answer your request
    Feel free to tell me what happened on one of the chat channels: www.jenkins.io/chat/ for details."

    Can anyone advise on how to proceed?

    4 replies
    pyinthesky
    @pyinthesky
    This message was deleted
    1 reply
    Eduardo Poiate
    @epoiate

    Hi everyone!
    There are a couple of PRs that fixes the sonar-gerrit-plugin that has been broken for years.
    Unfortunately, there is no one to review and approve them.
    Can someone help them, please?

    jenkinsci/sonar-gerrit-plugin#39
    jenkinsci/sonar-gerrit-plugin#38

    Ulli Hafner
    @uhafner:matrix.org
    [m]

    Wrong channel, this channel is about people who just starting contributing to Jenkins.

    Maybe that helps: https://groups.google.com/g/jenkinsci-dev/c/t0Q0UcSAJK4/m/kukgmscqAgAJ

    Eduardo Poiate
    @epoiate
    tks
    Eduardo Poiate
    @epoiate
    hey, that is exactly what I needed!
    vbhardwaj-matchless
    @vbhardwaj-matchless
    hi, I am getting this error when running jenkins agent as docker container - + docker pull node:12.22-alpine
    unable to resolve docker endpoint: open /certs/client/ca.pem: no such file or directory. I am running jenkins as docker container on my mac docker. Can anyone help me with this?
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    You should look for help in the correct Jenkins channel.
    cpodieu
    @cpodieu
    Hi Guys, I'm able to build the job locally but when I'm build the same job using jenkins, the build start but fail at one line in the script, but the script is good. I don't know if jenkins are using the wrong shell or the wrong user to build the jub.
    halkeye
    @halkeye:g4v.dev
    [m]
    @cpodieu: recommend you use the general jenkins channel #jenkinsci/jenkins instead of this one. This channel is for people wanting to leanr how to contribute to jenkins. Also recommend asking a question, and not just "I'm having an issue"
    Mohammad Afzal
    @mafzal669

    Hi All, I am new to jenkins and was trying to create a simple pipeline using Jenkinsfile from GIT SCM. However while giving the GIT URL for my repository I am getting below error, can someone please help me or redirect my issue to the concerned resource. Thanks

    Failed to connect to repository : Error performing git command: git ls-remote -h

    1 reply
    NehaMittal3010
    @NehaMittal3010
    Hi Team, i am unable to create plugin https://github.com/jenkinsci/active-choices-plugin with uplifted jquery.. Can someone help here?
    Mark Waite
    @MarkEWaite

    @NehaMittal3010 can you describe what you're trying to do?

    I made a feeble attempt in the node label parameter plugin to switch from the jquery plugin to the jquery 3 plugin (jenkinsci/nodelabelparameter-plugin#38) . Thankfully, then @halkeye rescued me and provided replacement code (jenkinsci/nodelabelparameter-plugin#39) that uses plain Javascript instead of using the JQuery library.

    Maybe the conversations on those two pull requests will help you on your journey

    NehaMittal3010
    @NehaMittal3010

    @MarkEWaite @halkeye i have installed the plugin from Manage Jenkins --> Manage Plugins .. "https://plugins.jenkins.io/uno-choice/" when i ran the security scans below vulnerability are encountered:- JQuery 1.12.4 contains multiple vulnerabilities:

    CVE-2020-11022 dated 2020-04-29 has a CVSS score of 6.9.
    CVE-2020-11023 dated 2020-04-29 has a CVSS score of 6.9
    CVE-2015-9251 dated 2015-01-18 has a CVSS score of 6.1.
    CVE-2019-11358 dated 2019-04-19 has a CVSS score of 6.1. i want to uplift the JQuery inside the Active choice Plugin.. i donot know how to create the plugin as i am new to this.. can u please assist me.

    halkeye
    @halkeye:g4v.dev
    [m]
    Why was I pinged there?
    Mark Waite
    @MarkEWaite
    Just because you were the one who helped me with the JQuery replacement in node label parameter. Sorry to bother you with another one, but I don't know JQuery
    halkeye
    @halkeye:g4v.dev
    [m]
    Oh. Because mark mentioned me first. I missed that
    Mark Waite
    @MarkEWaite
    @NehaMittal3010 you might refer to the "Contributing to Open Source" google doc for step by step instructions to get started. That was a workshop that I presented at DevOps World 2021 and it has been extended since then. https://docs.google.com/document/d/1PKYIpPlRVGsBqrz0Ob1Cv3cefOZ5j2xtGZdWs27kLuw/edit#heading=h.hvd0nm6pz5o4
    NehaMittal3010
    @NehaMittal3010
    @MarkEWaite Thank you i am following the procedure which is shared but getting below error:- mvn versions:update-parent -e
    [INFO] Error stacktraces are turned on.
    [INFO] Scanning for projects...
    Downloading from repo.jenkins-ci.org: https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/plugin/4.1/plugin-4.1.pom
    Downloading from central: https://repo.maven.apache.org/maven2/org/jenkins-ci/plugins/plugin/4.1/plugin-4.1.pom
    [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.1 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.1 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
    halkeye
    @halkeye:g4v.dev
    [m]
    @NehaMittal3010: network is unreachable is the error, I recommend keep trying, it sounds like repo.jenkins-ci.org is having issues
    NehaMittal3010
    @NehaMittal3010
    @halkeye:g4v.dev ok sure Thank you..
    Mark Waite
    @MarkEWaite
    There was a report of an issue with repo.jenkins-ci.org. As far as I can tell, that issue is resolved now. I was able to successfully do the following steps:
    $ gh repo clone jenkinsci/active-choices-plugin
    $ cd active-choices-plugin
    $ mvn clean -DforkCount=1C verify
    Mark Waite
    @MarkEWaite

    @NehaMittal3010 you might look at the existing pull requests in that plugin repository that are proposing other changes to the JavaScript. See

    If you'd like to see my first few steps on the "Contributing to Open Source" path, see:

    NehaMittal3010
    @NehaMittal3010
    @MarkEWaite Please find below logs:-
    mvn build -X
    Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
    Maven home: /usr/share/apache-maven
    Java version: 11.0.14, vendor: Oracle Corporation
    Java home: /usr/java/jdk-11.0.14
    Default locale: en_US, platform encoding: ANSI_X3.4-1968
    OS name: "linux", version: "4.1.12-112.16.4.el7uek.x86_64", arch: "amd64", family: "unix"
    [DEBUG] Created new class realm maven.api
    [DEBUG] Importing foreign packages into class realm maven.api
    [DEBUG] Imported: javax.annotation. < plexus.core
    [DEBUG] Imported: javax.enterprise.inject.
    < plexus.core
    [DEBUG] Imported: javax.enterprise.util. < plexus.core
    [DEBUG] Imported: javax.inject.
    < plexus.core
    [DEBUG] Imported: org.apache.maven. < plexus.core
    [DEBUG] Imported: org.apache.maven.artifact < plexus.core
    [DEBUG] Imported: org.apache.maven.classrealm < plexus.core
    [DEBUG] Imported: org.apache.maven.cli < plexus.core
    [DEBUG] Imported: org.apache.maven.configuration < plexus.core
    [DEBUG] Imported: org.apache.maven.exception < plexus.core
    [DEBUG] Imported: org.apache.maven.execution < plexus.core
    [DEBUG] Imported: org.apache.maven.execution.scope < plexus.core
    [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
    [DEBUG] Imported: org.apache.maven.model < plexus.core
    [DEBUG] Imported: org.apache.maven.monitor < plexus.core
    [DEBUG] Imported: org.apache.maven.plugin < plexus.core
    [DEBUG] Imported: org.apache.maven.profiles < plexus.core
    [DEBUG] Imported: org.apache.maven.project < plexus.core
    [DEBUG] Imported: org.apache.maven.reporting < plexus.core
    [DEBUG] Imported: org.apache.maven.repository < plexus.core
    [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
    [DEBUG] Imported: org.apache.maven.settings < plexus.core
    [DEBUG] Imported: org.apache.maven.toolchain < plexus.core
    [DEBUG] Imported: org.apache.maven.usability < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.
    < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
    [DEBUG] Imported: org.codehaus.classworlds < plexus.core
    [DEBUG] Imported: org.codehaus.plexus. < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.component < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.container < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.context < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
    [DEBUG] Imported: org.eclipse.aether.
    < plexus.core
    [DEBUG] Imported: org.eclipse.aether.artifact < plexus.core
    [DEBUG] Imported: org.eclipse.aether.collection < plexus.core
    [DEBUG] Imported: org.eclipse.aether.deployment < plexus.core
    [DEBUG] Imported: org.eclipse.aether.graph < plexus.core
    [DEBUG] Imported: org.eclipse.aether.impl < plexus.core
    [DEBUG] Imported: org.eclipse.aether.installation < plexus.core
    [DEBUG] Imported: org.eclipse.aether.internal.impl < plexus.core
    [DEBUG] Imported: org.eclipse.aether.metadata < plexus.core
    [DEBUG] Imported: org.eclipse.aether.repository < plexus.core
    [DEBUG] Imported: org.eclipse.aether.resolution < plexus.core
    [DEBUG] Imported: org.eclipse.aeth
    [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/