changeset 6552:15a12f2a47b4

jenkinsfile: delete all old files in the workspace Especial important when files have been renamed and there are *.pyc files left over from the last build.
author domruf <dominikruf@gmail.com>
date Fri, 24 Mar 2017 20:15:07 +0100
parents bc1b11a5d548
children e9ac5698281d
files Jenkinsfile
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Jenkinsfile	Wed Mar 15 12:36:43 2017 +0100
+++ b/Jenkinsfile	Fri Mar 24 20:15:07 2017 +0100
@@ -64,6 +64,7 @@
     def pytests = [:]
     pytests['sqlite'] = {
         ws {
+            deleteDir()
             unstash name: 'kallithea'
             if (isUnix()) {
                 sh script: """$activatevirtualenv
@@ -89,6 +90,7 @@
     if (isUnix()) {
         pytests['de'] = {
             ws {
+                deleteDir()
                 unstash name: 'kallithea'
                 withEnv(['LANG=de_DE.UTF-8',
                     'LANGUAGE=de',
@@ -113,6 +115,7 @@
         }
         pytests['mysql'] = {
             ws {
+                deleteDir()
                 unstash name: 'kallithea'
                 sh """$activatevirtualenv
                     pip install --upgrade MySQL-python
@@ -135,6 +138,7 @@
         }
         pytests['postgresql'] = {
             ws {
+                deleteDir()
                 unstash name: 'kallithea'
                 sh """$activatevirtualenv
                     pip install --upgrade psycopg2