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

fix(build): remove clean task to pass on Windows #163

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

lemeurherve
Copy link
Member

@lemeurherve lemeurherve commented Sep 5, 2023

This PR removes the clean gradle task not needed on ci.jenkins.io ephemeral agents to fix the following Windows builds error:

10:22:17  FAILURE: Build failed with an exception.
10:22:17  
10:22:17  * What went wrong:
10:22:17  Execution failed for task ':clean'.
10:22:17  > java.io.IOException: Unable to delete directory 'C:\Jenkins\agent\workspace\ugins_idea-stapler-plugin_PR-160\build'
10:22:17      Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
10:22:17      - C:\Jenkins\agent\workspace\ugins_idea-stapler-plugin_PR-160\build\tmp\.cache\expanded\expanded.lock
10:22:17      - C:\Jenkins\agent\workspace\ugins_idea-stapler-plugin_PR-160\build\tmp\.cache\expanded
10:22:17      - C:\Jenkins\agent\workspace\ugins_idea-stapler-plugin_PR-160\build\tmp\.cache
10:22:17      - C:\Jenkins\agent\workspace\ugins_idea-stapler-plugin_PR-160\build\tmp

Ref: jenkins-infra/helpdesk#3744

Testing done

Tested via a replay:

Submitter checklist

Preview Give feedback

Copy link
Member

@duemir duemir left a comment

Choose a reason for hiding this comment

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

OK. If clean is redundant due to ephemeral agents, let us remove it.

@duemir duemir merged commit de47fc4 into jenkinsci:master Sep 6, 2023
@duemir duemir added the pipeline Build/Release pipeline work label Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pipeline Build/Release pipeline work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants