Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 09:27
  • 07:26
    timja commented #1600
  • 02:47
    codecov[bot] commented #1600
  • 02:41
    basil commented #1600
  • 02:39
    codecov[bot] commented #1600
  • 02:33
    codecov[bot] commented #1600
  • 02:32
    codecov[bot] commented #1600
  • 02:27
    codecov[bot] commented #1600
  • 02:18
    basil synchronize #1600
  • 02:09
    basil review_requested #1600
  • 02:09
    basil opened #1600
  • May 07 21:30
  • May 07 20:31
    qalinn commented #1599
  • May 07 20:14
    timja commented #1599
  • May 07 19:56
    qalinn commented #1599
  • May 07 19:12
    timja commented #1599
  • May 07 19:09
    qalinn commented #1599
  • May 07 15:12
    timja closed #1599
  • May 07 15:12
    timja commented #1599
Joseph Petersen
@jetersen
Done though
@halkeye feel free to update the demo :laughing:
Gavin Mogan
@halkeye
i'll see what I can do, I had docker restart on me over night and woke up to my own jenkins not starting up, so it was a bit of flailing trying to find the right values. I can't find where/when the change happened in mailer
So in 1.25
Oleg Nenashev
@oleg-nenashev
@casz @timja FYI https://github.com/jenkinsci/read-only-configurations-plugin . Maybe it make sense to integrate the read-only permissions into this plugin
Daniel Estermann
@d.esterman_gitlab
:eyes:
Dmitriy M
@bop0hz
SEVERE: Failed ConfigurationAsCode.init java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1095) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) ... 8 more Caused by: java.io.UncheckedIOException: java.nio.file.NoSuchFileException: /var/jenkins_home/atomic5129479636675393041tmp
@oleg-nenashev hi, do you know what does it mean?
Dmitriy M
@bop0hz
it appears from time to time when I start my Jenkins container
Oleg Nenashev
@oleg-nenashev
@bop0hz Looks like a file lookup issue, need a full stacktrace to confirm
JCasC looks for cofiguration files in JENKINS_OME and due to whatever reason temporary files are located there
So it looks like there is a race condition
Dmitriy M
@bop0hz
@oleg-nenashev have a look please https://pastebin.com/59zZcNjP
Dmitriy M
@bop0hz
FROM jenkins/jenkins:lts
ENV CASC_JENKINS_CONFIG /var/jenkins_home/
COPY jenkins.yaml /var/jenkins_home/
COPY plugin-management-cli.jar /var/jenkins_home/
COPY plugins.txt /var/jenkins_home/
WORKDIR /var/jenkins_home/
RUN java -jar plugin-management-cli.jar --latest -f plugins.txt --verbose
maybe I am doing something wrong
Oleg Nenashev
@oleg-nenashev
@bop0hz It looks fine. I suggest reporting a bug to JCasC. atomic??????????tmp suggests it is the atomic move operation in the Jenkins core. I am not 100% why jenkins_home is used as a temprary dir for that particular move (stacktrace won't show the cause), but JCasC should be robust against such race conditions in file operations
Tim Jacomb
@timja
@oleg-nenashev I would rather add support in core than add that plugin, it does rather hacky jelly modification, I’ve heard rumours that it doesn’t work properly but I haven’t tested the plugin (was aware of it though)
Dmitriy M
@bop0hz

@bop0hz It looks fine. I suggest reporting a bug to JCasC. atomic??????????tmp suggests it is the atomic move operation in the Jenkins core. I am not 100% why jenkins_home is used as a temprary dir for that particular move (stacktrace won't show the cause), but JCasC should be robust against such race conditions in file operations

@oleg-nenashev thanks, are there any workarounds, how do you think?

Dmitriy M
@bop0hz
Damn, it seems I accidentally reproduced it and found the reason. I've commented ENV CASC_JENKINS_CONFIG /var/jenkins_home/. But container becomes stabilized and... it loads JCasC... from where? I went to the docs and found it: If you do not set the CASC_JENKINS_CONFIG environment variable, the plugin will default to looking for a single config file in $JENKINS_ROOT/jenkins.yaml. Maybe it is a reason of race condition JCasC tries to load config twice?
ricardompcarvalho
@ricardompcarvalho
image.png
Hello all, anyone know how to configurate this property?
Sladyn
@sladyn98
@ricardompcarvalho
tool:
  git:
    installations:
      - name: git
        home: /bin/git
      - name: another_git
        home: /usr/local/bin/git
ricardompcarvalho
@ricardompcarvalho
In the node property
image.png
Sladyn
@sladyn98
@ricardompcarvalho I havent configured it before but I can give you some examples
jenkins:
  globalNodeProperties:
    - envVars:
        env:
          - key: FOO
            value: BAR
ricardompcarvalho
@ricardompcarvalho
yes but i want an example of toolLocation
because i cant configure it
ricardompcarvalho
@ricardompcarvalho
I configure this way but give me error
nodeProperties:
                    - toolLocation:
                        locations:
                          - home: (Git) Default
                            key: "C:\Program Files (x86)\Git\bin\git.exe"
ricardompcarvalho
@ricardompcarvalho
I already discover it, thanks anyway @sladyn98
Torsten Walter
@torstenwalter

The stable/jenkins helm chart. Already has support for the configuration as code plugin. It's possible to enable by setting master.JCasC.enabled to true. It also has support for automatically reloading any configuration change without restarting Jenkins. This is done via a sidecar container which watches for config map changes which contain the configuration (master.sidecars.configAutoReload.enabled). You can also supply your JCasC configuration files via master.JCasC.configScripts.

That's all good to have, but I think the JCasC support could be improved even more. I just created an issue with a proposal in that regards: helm/charts#16931. I would love to here your feedback. If you want you can also support it by creating PRs which add better JCasC support.

Sladyn
@sladyn98

I already discover it, thanks anyway @sladyn98

Your Welcome :smile:

Joseph Petersen
@jetersen
@ricardompcarvalho you could configured it in UI and use export. If it does not appear in the export it is most likely broken
Tim Jacomb
@timja
Just merged all the dependabot PRs (closed the ones that need to come from the bom in jenkins core)
Joseph Petersen
@jetersen
@timja @oleg-nenashev let it :ship:? :laughing:
Suryatej Yaramada
@yrsurya
A quick question who are using JCAC plugin to build their Jenkins , how youguys are deploying jenkins initially ? I had a helm chart for Jenkins and want to deploy on EKS clusters. for application helm charts using jenkins we are going to deploy but for deploying jenkins helm chart how I can achieve this any thoughts ?
Tim Jacomb
@timja
do you mean the initial jenkins deployment?
we use fluxcd
@yrsurya
Suryatej Yaramada
@yrsurya
yeah initial deployment for Jenkins, right now I deployed dev env of Jenkins from my local but like to have a gitops jenkins , I think spinnaker which we can achieve this , will go through fluxcd docs. Thanks @timja
Joseph Petersen
@jetersen
:sob: @oleg-nenashev making it more difficult to automate Jenkins. With the changes to the CrumbIssuer we can no longer generate a API token on the fly when we spin up our test setup :sob:
Time to explore other options for generating an API token for a user.
Tim Jacomb
@timja
what do you need the api token for?
which changes?
Joseph Petersen
@jetersen
Figured out we needed some changes to our code. It needs to retrieve the session id due to: https://jenkins.io/doc/upgrade-guide/2.176/#SECURITY-626
Oleg Nenashev
@oleg-nenashev
CC @Wadeck for the crumb token
do we have a meeting today? If so, I will prepare Zoom
Jon Brohauge
@jonbrohauge
was just going to ask...
Tim Jacomb
@timja
Yes
Joseph Petersen
@jetersen
It would be nice to generate a API token from JCasC in some way either for internal local user or any user :)
Tim Jacomb
@timja
some sort of local system account when you're logged in via ldap / saml etc would be nice :D