-
Notifications
You must be signed in to change notification settings - Fork 280
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
[Bug]: SignArtifacts.groovy clones opensearch-build in the workspace and not in a folder #1436
[Bug]: SignArtifacts.groovy clones opensearch-build in the workspace and not in a folder #1436
Comments
All jobs should be executing inside docker contains with separate file systems and not walk over each-other. |
Yes. But we can have multiple repositories being clones inside the same job. Updated the description log output for better explanation |
I dont see this a breaking issue, for the fact the build repo workflows has to be called with scripts being on the workspace folder example as |
We can remove the cloning logic from this library and let the workspace take care of the execution of |
This was at a time when we are not sure about how Jenkins workspace default git clone runs. |
Hi @peterzhuamazon looks like this is still issue. Do you know if there is a workaround? |
The below solution works:
Let me know if anyone has any better solution. Thanks! |
Describe the bug
SignArtifacts.groovy
currently clones theopensearch-build
repo in the same workspace without creating a folder. This can cause issues since there might be other repositories that maybe cloning the their repositories and would mix up all the files in one directory.To reproduce
Create a dummy job to clone any repository other than
opensearch-build
inside workspace on jenkins and call signer. After that, runls $WORKSPACE
to see files from both the repos in the same directoryExpected behavior
signArtifacts.groovy
should create a separate temp folder to clone and run the commands for signing processAcceptance Criteria
signArtifacts
works in an isolated directory that it createsScreenshots
If applicable, add screenshots to help explain your problem.
Host / Environment
No response
Additional context
No response
Relevant log output
data-prepper job for example clones
data-prepper
repository and signer clonesopensearch-build
and below are the contents of the final workspace with files from both repositories mixed in a single folderThe text was updated successfully, but these errors were encountered: