You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Have the same issue with Jenkins 2.249.3 and compute engine plugin 4.3.3 despite installing java in "Startup script" section. Image used: "ubuntu-2004-focal-v20201028"
Have you got OSLogin enabled globally? If so then you you will need to create an instance template outside of jenkins and disable OSLogin within the metadata. In Jenkins then you just reference the instance template that you've already created.
That was how I resolved the issue in my case. OSLogin is enabled globally but the GCP Plugin in Jenkins doesn't seem to work when it is enabled so you need to disable it for any Jenkins nodes
Sorry, I know this is a long time after this issue but please would you know if it was possible to attach a start up script to an instance template (not a vm instance) and if possible how to do so? I have successfully set up an instance template in jenkins that was cloned from an existing vm instance that had Java 11 installed but when the on-demand agents are created in GCP, I get the Java not installed error. I am hoping that a start up script will install Java on the fly, on the agents created from the template...Thanks
The text was updated successfully, but these errors were encountered:
abdul-imonike
changed the title
> Have the same issue with Jenkins 2.249.3 and compute engine plugin 4.3.3 despite installing java in "Startup script" section. Image used: "ubuntu-2004-focal-v20201028"
Attaching a start up script to an instance template
Feb 25, 2024
Have you got OSLogin enabled globally? If so then you you will need to create an instance template outside of jenkins and disable OSLogin within the metadata. In Jenkins then you just reference the instance template that you've already created.
That was how I resolved the issue in my case. OSLogin is enabled globally but the GCP Plugin in Jenkins doesn't seem to work when it is enabled so you need to disable it for any Jenkins nodes
Originally posted by @emmaLP in #194 (comment)
Sorry, I know this is a long time after this issue but please would you know if it was possible to attach a start up script to an instance template (not a vm instance) and if possible how to do so? I have successfully set up an instance template in jenkins that was cloned from an existing vm instance that had Java 11 installed but when the on-demand agents are created in GCP, I get the Java not installed error. I am hoping that a start up script will install Java on the fly, on the agents created from the template...Thanks
The text was updated successfully, but these errors were encountered: