Commit 28385603 authored by Justin Kim's avatar Justin Kim

Jenkins: Clean samples before starting build

To be sure that the previous build residue shouldn't
affect on the current build, the repository needs to
be cleaned by git command.
Reviewed-by: 's avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: 's avatarJustin Kim <justin.kim@collabora.com>
Differential Revision: https://phabricator.apertis.org/D6949
parent c1e478e8
......@@ -36,6 +36,13 @@ if __name__ == '__main__':
):
os.environ.pop(name, None)
subprocess.check_call([
'git',
'clean',
'-fdx',
],
cwd=srcdir)
if os.path.exists(os.path.join(srcdir, '.gitmodules')):
subprocess.check_call([
'git',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment