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
[ci.jenkins.io] Provides both powershell
and pwsh
on all agent templates
#2974
Comments
So, the "absence" of
(https://github.com/jenkinsci/docker-inbound-agent/blob/master/11/windows/nanoserver-1809/Dockerfile#L25 -> https://github.com/jenkinsci/docker-agent/blob/master/11/windows/nanoserver-1809/Dockerfile#L30) |
Same for the base Microsoft nanoserver image (?) |
Oh...
|
I think we are missing something with the |
OK, I'm 200% confused by the pipeline steps:
Ping @jnord if you have any pointer to explain the difference for mere mortals such as us 😅 |
right. |
Oh I see. I assume that jenkins is not able to "guess" based on what it discovers on its PATH, is that correct? Would the proposal of @lemeurherve make sense (e.g. adding a |
I think I'll make sure |
I'll also intend to install Windows Powershell 5.1 ( IMO favoring |
Feel free to file a |
…nd PowerShell Core Ref: jenkins-infra/helpdesk#2974
…available (#260) * chore: sort tools-versions.yaml * fix: ensure both Windows Powershell and Powershell Core are available Ref: jenkins-infra/helpdesk#2974 * fix equals * Update provisioning/windows-provision.ps1 * add paths * Update provisioning/windows-provision.ps1 * remove unused versions * hotfix(Jenkinsfile) increase build timeout as temporary measure Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
…nd PowerShell Core (#240) Ref: jenkins-infra/helpdesk#2974
powershell
on the Windows Docker images used on ACIpowershell
on the Windows Docker images used on ACI (Azure Container Instances)
powershell
on the Windows Docker images used on ACI (Azure Container Instances)powershell
and pwsh
on all agent templates
After spending too much time trying to install Windows PowerShell in our nanoserver images, and PowerShell Core in our windowsserver images, I'm closing this issue since:
|
Service(s)
ci.jenkins.io
Summary
As per jenkinsci/workflow-basic-steps-plugin#203, it seems that
powershell
cannot be used on the Jenkins inbound images with nanoserver.ErrorCondition
jenkinsci/workflow-basic-steps-plugin#203 (comment)):java.io.IOException: Cannot run program "powershell" (in directory "…"): CreateProcess error=2, The system cannot find the file specified
ErrorCondition
jenkinsci/workflow-basic-steps-plugin#203 (comment)):Since feat: use Jenkins Infra inbound-agent Windows Docker image jenkins-infra#2203, the infra team can quickly add a fix as we manage our own base images (time to have the fix integrated on the upstream community image).
As per @jnord comment in [JENKINS-49707] Interpreting
ErrorCondition
jenkinsci/workflow-basic-steps-plugin#203 (comment)it seems that there is an issue on the upstream image jenkins/jnlp-agent-maven:windows-nanoserver .
Work is going on checking the base image of
jenkins/jnlp-agent-maven:windows-nanoserver
and check the status before trying to find a solution: Jesse was ablme to use "bat" instead of "powershell" for the tests so no blocker.Reproduction steps
No response
The text was updated successfully, but these errors were encountered: