Skip to content
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

_ensureDirectoryExists doesn't work properly with broken soft links #5

Closed
autumnpat opened this issue Sep 4, 2017 · 1 comment
Closed

Comments

@autumnpat
Copy link

SwiftPullArtefact@get-build-image-from-swift: EXCEPTION: Attempt to execute step 'get-build-image-from-swift' in phase 'pull' failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/Csmake/CliDriver.py", line 771, in launchStep
    result = method(stepdict)
  File "/usr/lib/python2.7/dist-packages/CsmakeProviders/CsmakeModules/SwiftPullArtefact.py", line 147, in pull
    self._ensureDirectoryExists(targetFile)
  File "/usr/lib/python2.7/dist-packages/Csmake/CsmakeModule.py", line 298, in _ensureDirectoryExists
    os.makedirs(directory)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: './target/archives'
` EXCEPTION: Attempt to execute step get-build-image-from-swift failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/Csmake/CliDriver.py", line 809, in launchStep
    raise e
OSError: [Errno 17] File exists: './target/archives'

target/archives is a broken link

@autumnpat
Copy link
Author

csmake-hpe#10

autumn-cpt added a commit to autumn-cpt/csmake that referenced this issue May 25, 2018
Also:
   Adding defaults to ShellToEnvironment
   GH devops-csmake#5 - fixing _ensureDirectoryExists to respect broken links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant