You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2020/04/14 14:53:21 UTC
[sling-tooling-jenkins] branch master updated: SLING-9370 - Clean
the working tree before starting a build
This is an automated email from the ASF dual-hosted git repository.
radu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
The following commit(s) were added to refs/heads/master by this push:
new 96d1125 SLING-9370 - Clean the working tree before starting a build
96d1125 is described below
commit 96d11259bb003d4ff07a089d0fb66a48f8123ddb
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Tue Apr 14 16:53:06 2020 +0200
SLING-9370 - Clean the working tree before starting a build
---
src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy b/src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy
index 956d639..70f0402 100644
--- a/src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy
+++ b/src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy
@@ -61,6 +61,7 @@ def runWithErrorHandling(Closure build) {
stage('Init') {
checkout scm
+ sh "git clean -fdx"
def url = sh(returnStdout: true, script: 'git config remote.origin.url').trim()
jobConfig.repoName = url.substring(url.lastIndexOf('/') + 1).replace('.git', '');
if ( fileExists('.sling-module.json') ) {
@@ -171,4 +172,4 @@ No further emails will be sent until the status of the build is changed.
}
emailext subject: subject, body: body, replyTo: 'dev@sling.apache.org', recipientProviders: recipientProviders, to: jsonArrayToCsv(recipients)
-}
\ No newline at end of file
+}