-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windocker: Capture setup steps for the host machine in an ansible playbook #3712
Comments
Noting that |
Replicating the instructions here. Noting that the docker install will reboot the machine part way through so we cannot run any of these bits in parallel with that :-) Steps (after formatting an F: drive for docker with
The final command will cause a reboot. Once the machine is back subsequent operations can be done safely in parallel:
(Optional pull If you want to build the docker image manually on the machine run this (ideally from a cygwin shell) Note that the
While you're doing that, grab the Temurin 21 MSI and install it for the jenkins agent: https://api.adoptium.net/v3/installer/latest/21/ga/windows/x64/jdk/hotspot/normal/eclipse (You may also want to run Once this is done, set up c:\workspace.gitconfig as per the issue description. Then you can start the image and run a build if desired:
When starting the jenkins agent on the host system you may get the following error when running jobs:
This will occur if you do not set |
Some notes for starting the jenkins agents on the machinesWhen starting the agent on the host system you may get the following error when running jobs:
This will occur if you do not set HOME=c:\workspace in the jenkins startup script. You may also get a message previously which can be ignored: 14:08:37 Warning: JENKINS-30600: special launcher org.jenkinsci.plugins.docker.workflow.WithContainerStep$Decorator$1@76d126a7; decorates hudson.plugins.cygpath.CygpathLauncherDecorator$1@17cc8fc0 will be ignored (a typical symptom is the Git executable not being run inside a designated container) Also be sure to start the agents with If you get a failure:
then cygwin isn't in the path - add `C:\cygwin64\bin to the startup script or somewhere else. If you have an issue about
you need to follow the instructions in the description of this issue. |
There is something relating to the setting of
This is despite Without: https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk21u/job/windbld/1354/console This is happening on the new EDIT: Seems to be working after adjusting the jenkins configuration to have a variable HOME pointing at the cygwin path |
Steps are covered in #3286 (comment)
Possibly needs to include the setup of
C:\jw
and the.gitconfig
file too subject to the resolution of other issues relating to path length and permissions.c:\workspace\.gitconfig
(Needs to have CRLF line endings, so don't do this from cygwin)startjenkins.cmd needs:
The text was updated successfully, but these errors were encountered: