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

delete workspace before starting the build #3319

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

arjun-raj-kuppala
Copy link
Contributor

No description provided.

@@ -1,7 +1,9 @@
def hipBuildTest(String backendLabel) {
node(backendLabel) {
stage("SYNC - ${backendLabel}") {

// Delete the workspace
sh "rm ${env.WORKSPACE}/* -fr"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using consistent coding style?

Suggested change
sh "rm ${env.WORKSPACE}/* -fr"
sh "rm -fr ${env.WORKSPACE}/*"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this might not delete files and directories starting with '.', which might be an issue.

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.

2 participants