Skip to content

Commit

Permalink
568417: Build changes for migration of MAT JIPP to new CI infrastructure
Browse files Browse the repository at this point in the history
Try using Maven Wagon

Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=568417

Change-Id: I4c5c69a99fbcdc3214bff1d3bf6bea5b7d25c800
  • Loading branch information
ajohnson1 committed Nov 1, 2020
1 parent ae9460c commit db97c08
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 2 deletions.
36 changes: 35 additions & 1 deletion org.eclipse.mat.product/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- Copyright (c) 2010, 2011 SAP AG. All rights reserved. This program and the
<!-- Copyright (c) 2010, 2020 SAP AG and IBM Corporation. All rights reserved. This program and the
accompanying materials are made available under the terms of the Eclipse
Public License v1.0 which accompanies this distribution, and is available
at http://www.eclipse.org/legal/epl-v10.html Contributors: SAP AG - initial
Expand Down Expand Up @@ -96,6 +96,7 @@
</target>
</configuration>
</execution>
<!--
<execution>
<id>publish</id>
<phase>install</phase>
Expand All @@ -118,6 +119,7 @@
</target>
</configuration>
</execution>
-->
</executions>
</plugin>
<plugin>
Expand Down Expand Up @@ -179,6 +181,38 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<id>publish-prepare</id>
<phase>install</phase>
<goals>
<goal>sshexec</goal>
</goals>
<configuration>
<url>scpexe://${download-remote-publish-rcp-path}</url>
<commands>
<command>rm ${download-publish-rcp-path}/*</command>
</commands>
</configuration>
</execution>
<execution>
<id>publish</id>
<phase>install</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<fromDir>target/products</fromDir>
<includes>*.zip,*.dmg</includes>
<url>scpexe://${${download-remote-publish-rcp-path}</url>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down
34 changes: 34 additions & 0 deletions org.eclipse.mat.updatesite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<id>build-server</id>
<build>
<plugins>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand Down Expand Up @@ -46,6 +47,39 @@
</execution>
</executions>
</plugin>
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<id>deploy-prepare</id>
<phase>install</phase>
<goals>
<goal>sshexec</goal>
</goals>
<configuration>
<url>scpexe://${download-remote-publish-path}</url>
<commands>
<command>rm ${download-publish-path}/*</command>
</commands>
</configuration>
</execution>
<execution>
<id>deploy</id>
<phase>install</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<fromDir>target/repository</fromDir>
<includes>**</includes>
<url>scpexe://${${download-remote-publish-path}</url>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down
11 changes: 10 additions & 1 deletion parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
<tycho-version>1.7.0</tycho-version>
<signer-input-directory>/home/data/httpd/download-staging.priv/tools/mat</signer-input-directory>
<download-publish-path>/home/data/httpd/download.eclipse.org/mat/snapshots/update-site</download-publish-path>
<download-publish-rcp-path>/home/data/httpd/download.eclipse.org/mat/snapshots/rcp</download-publish-rcp-path>
<download-remote-publish-path>genie.mat@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/mat/snapshots/update-site</download-remote-publish-path>
<download-publish-rcp-path>genie.mat@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/mat/snapshots/rcp</download-publish-rcp-path>
<download-remote-publish-rcp-path>/home/data/httpd/download.eclipse.org/mat/snapshots/rcp</download-remote-publish-rcp-path>
<!-- mat-target specifies which .target definition file will be used -->
<mat-target>mat-2020-03</mat-target>
<!-- mat-release-repo-url specifies from which p2 repo the MAT bundles
Expand Down Expand Up @@ -340,6 +342,13 @@
</plugin>
</plugins>
</pluginManagement>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh-external</artifactId>
<version>3.4.1</version>
</extension>
</extensions>
</build>
</project>

0 comments on commit db97c08

Please sign in to comment.