Skip to content

Commit

Permalink
try hardcoded path like the one from https://github.com/jenkins-infra…
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherveCB committed Mar 5, 2025
1 parent 8bc8f79 commit f192d43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/agent.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ Describe "[$global:IMAGE_NAME] image has correct applications in the PATH" {
}

It 'can use git in a long path' {
$longPath = 'C:\' + ('a' * 250) + '\repo'
# $longPath = 'C:\' + ('a' * 250) + '\repo'
# TODO: restore line above and remove line below
$longPath = 'C:\source\temp\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\heldesk'
$repository = 'https://github.com/jenkinsci/pipeline-model-definition-plugin.git'
$exitCode, $stdout, $stderr = Run-Program 'docker' "exec $global:CONTAINERNAME $global:CONTAINERSHELL -C `"git version ; reg.exe query HKLM\SYSTEM\CurrentControlSet\Control\FileSystem ; cat .\.gitconfig ; New-Item -ItemType Directory -Path ${longPath} ; cd ${longPath} ; git init ; git remote add origin $repository ; git fetch origin ; git checkout master`""
$exitCode | Should -Be 0
Expand Down

0 comments on commit f192d43

Please sign in to comment.