Skip to content
Snippets Groups Projects
Commit 16a4bc6d authored by s2870355's avatar s2870355
Browse files

cache untracked by default

parent 8ef2f908
No related branches found
No related tags found
No related merge requests found
Pipeline #75513 canceled
......@@ -122,7 +122,7 @@ class job_data:
if len(self.cache) != 0:
cache = self.cache
else:
cache = None
cache = "cache"
image : str = self.image
script : str = "chmod +x " + self.location + " && " + "./" + self.location
output: str = "\n"
......@@ -138,7 +138,10 @@ class job_data:
for artifact in artifacts:
output = output + "\t\t\t- \"" + artifact + '\"\n'
if cache is not None:
output = output + '\t' + 'cache:\n\t\tpaths:\n'
for c in cache:
output = output + "\t\t\t- \"" + c + '\"\n'
if cache == "untracked":
output = output + '\t' + 'cache:\n\t\tuntracked: true\n'
else:
output = output + '\t' + 'cache:\n\t\tpaths:\n'
for c in cache:
output = output + "\t\t\t- \"" + c + '\"\n'
return output
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment