From 75e8fe62733a97e5ea939c1fb982dfe2b34c93cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Sat, 23 Jan 2021 11:35:13 +0100 Subject: [PATCH] Fixing jenkinsfile #5. --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ced3ffb..e898f76 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,11 @@ pipeline { stage('Build') { steps { script { - println("gradlew build".execute().text) + if (System.getProperty('os.name').startsWith('Windows')) { + bat('gradlew build') + } else { + sh('gradlew build') + } } } }