Skip to content

Commit 81e8d84

Browse files
committed
don't prune clean state
1 parent 545b779 commit 81e8d84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ def buildRef(repo, ref, state):
9898

9999
def pruneBuilds(repo, origin):
100100
repo, origin = initRepo(config["workPath"], config["remoteUrl"])
101-
builtrefs = os.listdir(config["buildRoot"]+'/origin')
101+
try:
102+
builtrefs = os.listdir(config["buildRoot"]+'/origin')
103+
except FileNotFoundError:
104+
print("Clean buildRoot")
102105

103106
srefs = [str(x) for x in origin.refs]
104107
builtrefs = ['origin/'+str(x) for x in builtrefs]

0 commit comments

Comments
 (0)