Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Erwyn
    @erwyn:matrix.org
    [m]
    but I guess you're loosing the debugger capabilities ?
    oh no, I'm wrong (reading your documentation)
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    I start a remote debugger for the agent and for the controller. So I can have breakpoints for each of the nodes.
    Erwyn
    @erwyn:matrix.org
    [m]
    very nice, I think I'm going to replicate this setup, looks like the sanest way to have something easily configurable to match most the deployments
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Yes, I m using this setup also in my student courses: this helps to simplify the initial ramp up.
    paul0
    @paul0:matrix.org
    [m]

    Hi folks,
    I am new to this channel and wanted to contribute in jenkins infra. I have visited the https://github.com/jenkins-infra/charts/blob/main/CONTRIBUTING.md but still facing issue where to start from.

    can anyone help me to get started with ? I have skills on docker, k8s, helm

    halkeye
    @halkeye:g4v.dev
    [m]
    paul0: I guess what do you want to do? I don't think you need to run every chart locally
    paul0: I mean
    1 reply
    halkeye
    @halkeye:g4v.dev
    [m]
    paul0: sorry I keep getting distracted and forget to reply. I suggest asking on jenkins-infra channel on librea irc. That's where most of the infra people hang out
    I know there's some tickets in jira marked newbie friendly, but I don't know how up to date they are
    hchakrouun
    @hchakrouun
    @uhafner:matrix.org It's ok, I created a pull request and someone from the maintainers is reviewing it, thanks
    Erwyn
    @erwyn:matrix.org
    [m]
    Hi, I have a question about programming a Jenkinsfile Step in a Jenkins plugin. When I run the step, I'd like to get the hash of the SCM commit attached to the pipeline, the one that is checkout out when doing a checkout scmin the Jenkinsfile and is directly configured in the job. I thought I had a solution by doing a run.getAction(BuildData.class) but I discovered that I don't always get the data of this SCM (for instance if global libraries are imported). So I guess I was just lucky but this isn't the correct way to find it. Do you have any clue about where I should look at ?
    5 replies
    hari prasad
    @harip96_gitlab
    hey folks, whenever I try to give the git repository url to build a job, it throws ERROR: Error fetching remote repo 'origin' But then when i change the user credentials it works fine... Same way, if i give the same credential which worked in the previous build it throws the error again and if i give the credential which did not work before, it works for the current build........... So basically i need to keep juggling with the credentials.... why is it showing like this? How do i solve this??
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    1 reply
    halkeye
    @halkeye:g4v.dev
    [m]
    Erwyn: also for help, recommend jenkinsci/jenkins gitter room, this room is for learning to contribute (docs/code/etc) to jenkins. So more eyes are there
    1 reply
    Erwin Dejucos
    @ierwind
    Hi Everyone. I do have a silly question with regards to the repo for jenkins for RHEL. I have a cloudformation template that gets packages from https://pkg.jenkins.io/redhat-stable/ . The issue I'm having is that when I set that to https://pkg.jenkins.io/redhat-stable/jenkins-2.289.3.1-1.noarch.rpm , my cfn-init and instance all goes ok. but when using https://pkg.jenkins.io/redhat-stable/jenkins-2.303.3.1-1.noarch.rpm, it fails and jenkins is not installed on my ec2 instance.
    6 replies
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    There are different job types in Jenkins, so there is no easy way to get the SCM.
    1 reply
    kkuzneco
    @kkuzneco
    Hi. Help me please. I had Jenkins configured on my computer, there was an uncommon items created there. Today my system was reinstalled. Files on the computer were not deleted. But when I started Jenkins in the usual way, it started setting up a new instance. Now I am unable to recover my old data. Please help me how to do this?
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    @kkuzneco: This channel is about contributing to Jenkins
    hchakrouun
    @hchakrouun
    Hi, I created a Pull Request For Vault plugin: jenkinsci/hashicorp-vault-plugin#195 which was approved by one maintainer of the plugin, I don't know what is the process to merge Pull Requests. Can anyone explain to me how this works ?
    Thank you
    Mark Waite
    @MarkEWaite
    Maintainers choose the process they use for pull requests. You'd need to ask in the pull request to understand if more changes are needed. While you're waiting for the pull request to be merged, you can use the incremental build that is available from https://ci.jenkins.io/job/Plugins/job/hashicorp-vault-plugin/job/PR-195/ . Either download the hpi file and install it, or place a reference to the hpi file in your plugins.txt file (if you manage plugin versions as code).
    Abhay kumar
    @abhayku2002
    hi @all: Do anybody have experience in Dart and Julia programing language?
    hchakrouun
    @hchakrouun
    Thank you @MarkEWaite for your reply, I already asked a maintainer who approved the pull request, I am still waiting for his feedback
    Christian Petersson
    @Issen007
    Just of interest, since 2017 nothing really happening with the Django-Jenkins plugin and it doesn't really support Django 3.x
    What are people using for testing Django Apps with Jenkins?
    halkeye
    @halkeye:g4v.dev
    [m]
    there's a django plugin? wouldn't you just use virtualenv + pytest?
    Christian Petersson
    @Issen007
    @halkeye:g4v.dev That is maybe the answer and the way I'm doing it at the moment. Accept I'm using a container and k8s instead of virtualenv. But was curious how other people are working.
    halkeye
    @halkeye:g4v.dev
    [m]
    @Issen007: well since this channel is for people new to contributing to Jenkins I don't think you'll get much more feedback. I recommend the general Jenkins room or the community site
    Also I googled yesterday. There's no Django plugin. Theres some Django tooling that someone made and published themselves. I recommend simple. Use pytest with junit reporter. Then use junit Jenkins plugin. Then eventually use warnings-ng plugin for more metrics
    Christian Petersson
    @Issen007
    @halkeye:g4v.dev thanks. But I am new. LOL... ;)
    btw, is it only Gitter Jenkins Community are using? There isn't any Slack channel?
    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.