Jenkins Node Restriction – Jenkins Node should be visible to specific project only
We have Jenkins setup with Multiple project(Folder). Each folder has 3 user groups: Developer, Lead, View. We need to restrict the nodes to projects, each project should be able to see only their specific node dedicated to their project
Example,
Project/Folder name – Atlassian
Groups assigned – Atlassian-Lead, Atlassian-Developer, Atlassian-View
Node – jenkins-atlassian
The members of these groups can only see thier Folder and also should see the only the node dedicated to their Project.
Jenkins will not serve generated HMTL with the correct Security Policy
I have a Jenkins Jenkinsfile build job which generates a HTML report. This report is available as a build artefact and via the PublisHTML Jenkins plugin.
Jenkins failing to update existing EC2 worker node configuration
I have the EC2 plugin installed and configured on Jenkins. Workers are being successfully provisioned and connected to the controller.
Now the problem is that when trying to update properties of an already existing node / worker, the following exception is thrown:
Jenkins hudson probleme
i have big problems with jenkins in vps ubuntu
i tried to start jenkins but i get many problemes
Jul 04 12:49:36 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:49:36.855+0000 [id=48] INFO hudson.util.Retrier#start: Attempt #1 to do the action check updates server
Jul 04 12:50:44 vps21946-u4b.zenhosting.info systemd[1]: jenkins.service: start operation timed out. Terminating.
Jul 04 12:50:44 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:44.745+0000 [id=27] INFO winstone.Logger#logInternal: JVM is terminating. Shutting down Jetty
Jul 04 12:50:44 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:44.749+0000 [id=27] INFO org.eclipse.jetty.server.Server#doStop: Stopped Server@78b729e6{STOPPING}[10.0.20,sto=0]
Jul 04 12:50:44 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:44.754+0000 [id=27] INFO o.e.j.server.AbstractConnector#doStop: Stopped ServerConnector@55ca8de8{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
Jul 04 12:50:44 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:44.847+0000 [id=27] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Stopping Jenkins
Jul 04 12:50:44 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:44.945+0000 [id=27] INFO jenkins.model.Jenkins$16#onAttained: Started termination
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:45.058+0000 [id=27] INFO jenkins.model.Jenkins$16#onAttained: Completed termination
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:45.067+0000 [id=27] INFO jenkins.model.Jenkins#_cleanUpDisconnectComputers: Starting node disconnection
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:45.138+0000 [id=27] INFO jenkins.model.Jenkins#_cleanUpShutdownPluginManager: Stopping plugin manager
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:45.140+0000 [id=27] INFO jenkins.model.Jenkins#_cleanUpPersistQueue: Persisting build queue
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:45.165+0000 [id=27] INFO jenkins.model.Jenkins#_cleanUpAwaitDisconnects: Waiting for node disconnection completion
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:45.166+0000 [id=27] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:45.172+0000 [id=27] INFO hudson.WebAppMain#contextDestroyed: Shutting down a Jenkins instance that was still starting up
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: java.lang.Throwable: reason
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at hudson.WebAppMain.contextDestroyed(WebAppMain.java:407)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:1059)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:636)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.handler.ContextHandler.contextDestroyed(ContextHandler.java:1016)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:306)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:412)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:413)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:497)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:1039)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:399)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1311)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:1087)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:312)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.server.Server.doStop(Server.java:517)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at winstone.Launcher.shutdown(Launcher.java:442)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at winstone.ShutdownHook.run(ShutdownHook.java:28)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:45.244+0000 [id=24] SEVERE hudson.util.BootFailure#publish: Failed to initialize Jenkins
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: java.lang.InterruptedException
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at java.base/java.lang.Object.wait(Native Method)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at java.base/java.lang.Object.wait(Object.java:338)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:288)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at jenkins.InitReactorRunner.run(InitReactorRunner.java:49)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at jenkins.model.Jenkins.executeReactor(Jenkins.java:1210)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at jenkins.model.Jenkins.(Jenkins.java:997)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at hudson.model.Hudson.(Hudson.java:86)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at hudson.model.Hudson.(Hudson.java:82)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at hudson.WebAppMain$3.run(WebAppMain.java:248)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: Caused: hudson.util.HudsonFailedToLoad
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: at hudson.WebAppMain$3.run(WebAppMain.java:276)
Jul 04 12:50:45 vps21946-u4b.zenhosting.info jenkins[275635]: 2024-07-04 12:50:45.256+0000 [id=27] INFO o.e.j.s.handler.ContextHandler#doStop: Stopped w.@3a7b503d{Jenkins v2.452.2,/,null,STOPPED}{/var/cache/jenkins
/war}
Jul 04 12:50:45 vps21946-u4b.zenhosting.info systemd[1]: jenkins.service: Failed with result ‘timeout’.
Jul 04 12:50:45 vps21946-u4b.zenhosting.info systemd[1]: Failed to start Jenkins Continuous Integration Server.
Jul 04 12:50:45 vps21946-u4b.zenhosting.info systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 27.
Jul 04 12:50:45 vps21946-u4b.zenhosting.info systemd[1]: Stopped Jenkins Continuous Integration Server.
Jul 04 12:50:45 vps21946-u4b.zenhosting.info systemd[1]: Starting Jenkins Continuous Integration Server…
Jul 04 12:50:47 vps21946-u4b.zenhosting.info jenkins[275724]: Running from: /usr/share/java/jenkins.war
Jul 04 12:50:49 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:48.948+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
Jul 04 12:50:49 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:49.562+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
Jul 04 12:50:50 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:50.060+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-10.0.20; built: 2024-01-29T20:46:45.278Z; git: 3a745c71c23682146
f262b99f4ddc4c1bc41630c; jvm 17.0.8+9-LTS-211
Jul 04 12:50:51 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:51.746+0000 [id=1] INFO o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.Jett
yJspServlet
Jul 04 12:50:52 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:52.056+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: Session workerName=node0
Jul 04 12:50:54 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:54.973+0000 [id=1] INFO hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.
get(“JENKINS_HOME”)
Jul 04 12:50:55 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:55.459+0000 [id=1] INFO o.e.j.s.handler.ContextHandler#doStart: Started w.@3a7b503d{Jenkins v2.452.2,/,file:///var/cache/jenkins/war/,A
VAILABLE}{/var/cache/jenkins/war}
Jul 04 12:50:55 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:55.635+0000 [id=1] INFO o.e.j.server.AbstractConnector#doStart: Started ServerConnector@55ca8de8{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
Jul 04 12:50:55 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:55.726+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: Started Server@78b729e6{STARTING}[10.0.20,sto=0] @9699ms
Jul 04 12:50:55 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:55.756+0000 [id=26] INFO winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
Jul 04 12:50:58 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:58.727+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
Jul 04 12:50:58 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:50:58.761+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
Jul 04 12:51:04 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:51:04.154+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
Jul 04 12:51:04 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:51:04.164+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
Jul 04 12:51:04 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:51:04.361+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
Jul 04 12:51:06 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:51:06.655+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
Jul 04 12:51:06 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:51:06.657+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
Jul 04 12:51:06 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:51:06.658+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
Jul 04 12:51:06 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:51:06.662+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
Jul 04 12:51:06 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:51:06.939+0000 [id=48] INFO hudson.util.Retrier#start: Attempt #1 to do the action check updates server
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: 2024-07-04 12:51:07.059+0000 [id=32] INFO jenkins.install.SetupWizard#init:
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: *************************************************************
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: *************************************************************
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: *************************************************************
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: Jenkins initial setup is required. An admin user has been created and a password generated.
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: Please use the following password to proceed to installation:
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: 516ffc9f33554d639dd62d62f2694de1
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: *************************************************************
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: *************************************************************
Jul 04 12:51:07 vps21946-u4b.zenhosting.info jenkins[275724]: *************************************************************
Jul 04 12:52:16 vps21946-u4b.zenhosting.info systemd[1]: jenkins.service: start operation timed out. Terminating.
Is there a Jenkins replacement for greenballs? How to display build results on UI page
We just upversioned old Jenkins version from 2.319 to 2.426
Objects in Jenkins that can be used in template of emailext
According to the Email Extension and the example template html and text, I found the objects:
Parameter Separator with Jenkins plugin
I’m starting to use the Parameter Separator plugin to separate the configuration parameters of a job that has many parameters.
The definition of the parameters is loaded from a configuration file. what is the syntax to separate parameters with a separator line?
I am trying this but the line is not showing
How Does Jenkins extend/compile/run Plugins?
I try to create a plugin-based-app and I saw similar service on Jenkins. It allows to create plugins in .jpi/.hpi
format and then upload/install this plugin. But I couldn’t figure its-pipeline out from source code.
Jenkins’ dark theme hardcoded the IP info into the code made dynamic IP virtual machine loading page SLOWER over 10 seconds?
The virtual machine used Jenkins very smoothly at the beginning, but one day suddenly the Jenkins page loaded very slowly. The page that could be loaded within 1 second before was often taken more than 10 seconds to load. But it is not the kind of stuck that cannot be loaded at all. All functions can be used normally, but the loading time is extremely long.
Use F12 of the browser to check the elements and find that there is an element called theme.css that often takes more than 10 seconds to load, and this element needs to be loaded every time a page is jumped.
Then I found theme.css hardcoded the IP which is when I installed the Jenkins and plugins. But my VM IP is dynamic. It will change after some time later.
Request IP is http://192.168.11.131
, but my VM IP is http://192.168.11.137
.
Hardcode
After forbiden the dark mode plugin and restart the Jenkins, I found the pages could be load in normal speed.
Jenkins API Credential difference between PersonalAccessTokenImpland GitlabAPiTokenImpl
I have inherited management of some legacy Jenkins infrastructure and I am confused because I have two types of Gitlab API Tokens in my credentials: