Skip to content

feat(3333): Add skip git clone variable [2] #248

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

yakanechi
Copy link
Contributor

@yakanechi yakanechi commented Jun 23, 2025

Context

Add git clone skipping option in checkout command on setup.
When users set SD_SKIP_REPOSITORY_CLONE env, Screwdriver skip clone repository.

This is a fix that assumes the following refactoring

For simple differences from #247, see sonic-screwdriver-cd#2

Objective

When SD_SKIP_REPOSITORY_CLONE is set, no git command (clone, fetch, reset)

  • When SD_SKIP_REPOSITORY_CLONE is set, It is possible to build to use an image without git.
  • However,git config runs so that the user can manually cloning arbitrary repositories when use an image containes git.

teardown is executed in the sourceDir by the Launcher, so when enable SD_SKIP_REPOSITORY_CLONE, an empty directory is created at the end and the working dir is the sourceDir

References

screwdriver-cd/screwdriver#3333

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

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

Successfully merging this pull request may close these issues.

3 participants