ref #7279 Delete update site before deploying a new build
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 20 Feb 2018 15:17:22 +0000 (16:17 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 20 Feb 2018 15:17:22 +0000 (16:17 +0100)
eu.etaxonomy.taxeditor/pom.xml

index d26874b4640e3595e2f64253848f7d8c861d5235..f36ea5902b118c219100e9b24862cf46151a9be8 100644 (file)
             <!-- Problems with the wagon-maven-plugin have been encounterd 
               on Windows, it should work properly on linux though. -->
             <executions>
-              <execution>
+             <execution>
+              <id>delete_update_site</id>
+              <phase>deploy</phase>
+              <goals>
+                <goal>sshexec</goal>
+              </goals>
+              <configuration>
+                <serverId>update_site_server</serverId>
+                <url>scp://wp5.e-taxonomy.eu/var/www/download/taxeditor/update/</url>
+                <commands>
+                  <command>rm -r ${update.dir}/*</command>
+                </commands>
+              </configuration>
+            </execution>
+             <execution>
                 <phase>package</phase>
                 <goals>
                   <goal>upload</goal>