From 5ce34a716e50026902bd8b83aa06c8287cc0eda9 Mon Sep 17 00:00:00 2001 From: Kamil Guttmann Date: Tue, 3 May 2022 15:03:42 +0200 Subject: [PATCH] Fix invoking script --- Jenkinsfile.train | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile.train b/Jenkinsfile.train index f136c79..7ad5755 100644 --- a/Jenkinsfile.train +++ b/Jenkinsfile.train @@ -27,7 +27,8 @@ pipeline { } stage("Train model") { steps { - sh "./train_model.py $EPOCHS" + sh "chmod u+x ./train_model.py" + sh "python ./train_model.py $EPOCHS" archiveArtifacts artifacts: "./model/*", onlyIfSuccessful: true } }