[java-identity-provider] 11/12: IDP-2147 Investigate WixV4

Rod Widdowson rdw at steadingsoftware.com
Sat Apr 13 12:55:46 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch dev/IDP-2147
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=8d7bff40f4ab3ee92766bd9b1a75d459728933e1

commit 8d7bff40f4ab3ee92766bd9b1a75d459728933e1
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Apr 9 13:25:48 2024 +0100

    IDP-2147 Investigate WixV4
    
    https://shibboleth.atlassian.net/browse/IDP-2147
    
    Attempt to do a sign & deploy of the snapshot
---
 idp-msi/pom.xml | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 86 insertions(+), 8 deletions(-)

diff --git a/idp-msi/pom.xml b/idp-msi/pom.xml
index 1c877d6f5..41c5b081b 100644
--- a/idp-msi/pom.xml
+++ b/idp-msi/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>net.shibboleth.idp</groupId>
         <artifactId>idp-parent</artifactId>
-	<!-- DO NO CHANGE VERSION without changing msi.version below -->
+        <!-- DO NO CHANGE VERSION without changing msi.version below -->
         <version>5.1.2-SNAPSHOT</version>
     </parent>
 
@@ -20,11 +20,11 @@
     <properties>
         <!-- where to put the jetty-base we are making -->
         <assemblyDirectory>${project.build.directory}/idp-jetty-base</assemblyDirectory>
-	<!-- msi Version  - CHANGE IN LOCKSTEP WITH THE VERSION ABOVE
-	     99 is shorthand for SNAPSHOT
-	-->
-	<supress.validation>false</supress.validation>
-	<msi.version>5.1.1.99</msi.version>
+        <!-- msi Version  - CHANGE IN LOCKSTEP WITH THE VERSION ABOVE
+             99 is shorthand for SNAPSHOT
+        -->
+        <supress.validation>false</supress.validation>
+        <msi.version>5.1.1.99</msi.version>
     </properties>
 
     <profiles>
@@ -82,7 +82,7 @@
                                     <arguments>
                                         <argument>clean</argument>
                                         <argument>src/main/wix/idp.vcxproj</argument>
-					<argument>/p:SuppressValidation=${supress.validation}</argument>
+                                        <argument>/p:SuppressValidation=${supress.validation}</argument>
                                     </arguments>
                                 </configuration>
                             </execution>
@@ -119,7 +119,7 @@
                                 <configuration>
                                     <target>
                                         <copy file="src/main/wix/obj/Debug/idp.msi"
-					      tofile="${project.build.directory}/shibboleth-identity-provider-${project.version}-x64.msi"/>
+                                              tofile="${project.build.directory}/shibboleth-identity-provider-${project.version}-x64.msi"/>
                                     </target>
                                 </configuration>
                             </execution>
@@ -128,5 +128,83 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>sign-and-push-snapshot</id>
+            <build>
+                <plugins>
+                    <!-- Create gnupg-homedir and import secret key from env. -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>3.1.0</version>
+                        <executions>
+                            <execution>
+                                <id>create-gnupg-homedir-and-import-secret-key-from-env</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <target>
+                                        <mkdir dir="${project.basedir}/gnupg" />
+                                        <chmod dir="${project.basedir}/gnupg" perm="700" verbose="true" />
+                                        <copy todir="${project.basedir}/gnupg" file="${env.gpg_secret}" verbose="true" />
+                                    </target>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <!-- Sign artifacts with gnupg homedir and passphrase from env. -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>sign-and-push-msi</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign-and-deploy-file</goal>
+                                </goals>
+                                <configuration>
+                                    <url>http://127.0.0.1:1581/nexus/content/repositories/snapshots</url>
+                                    <repositoryId>snapshots</repositoryId>
+                                    <file>${project.basedir}/target/shibboleth-identity-provider-${project.version}-x64.msi</file>
+                                    <groupId>net.shibboleth.idp</groupId>
+                                    <artifactId>idp-msi</artifactId>
+                                    <version>${project.version}</version>
+                                    <generatePom>false</generatePom>
+                                    <packaging>jar</packaging>
+                                    <classifier>msi</classifier>
+                                    <homedir>${project.basedir}/gnupg</homedir>
+                                    <passphrase>${env.gpg_passphrase}</passphrase>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <!-- Delete gnupg homedir. -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-clean-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>delete-gnupg-homedir</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>clean</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <excludeDefaultDirectories>true</excludeDefaultDirectories>
+                            <filesets>
+                                <fileset>
+                                    <directory>${project.basedir}/gnupg</directory>
+                                </fileset>
+                            </filesets>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 </project>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list