Skip to content

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.

@minghay minghay merged commit 1731d22 into screwdriver-cd:master Jun 26, 2025
2 checks passed
@sd-buildbot
Copy link

🎉 This PR is included in version 14.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants