Reputation: 2947
I have a Builflow
with Groovy script
. I cannot seem to be able to create a new file. The command does execute but I cannot see the file in my workspace
.
First to create it in WORKSPACE I need to know where it is.
def WORKSPACE= build.environment.get("WORKSPACE")
Then define and create the file
def inputFile = new File(WORKSPACE + "/propfile")
new File(WORKSPACE + "/propfile")
Upvotes: 0
Views: 1892