Skip to content

Commit 2cc0555

Browse files
authored
Merge pull request #37317 from gsmet/gpg-no-pinentry
Avoid asking for GPG passphrase on CI
2 parents 4e6a95a + 86673f9 commit 2cc0555

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

independent-projects/parent/pom.xml

+25
Original file line numberDiff line numberDiff line change
@@ -831,5 +831,30 @@
831831
</plugins>
832832
</build>
833833
</profile>
834+
<profile>
835+
<id>ci</id>
836+
<activation>
837+
<property>
838+
<name>env.CI</name>
839+
</property>
840+
</activation>
841+
<build>
842+
<pluginManagement>
843+
<plugins>
844+
<plugin>
845+
<groupId>org.apache.maven.plugins</groupId>
846+
<artifactId>maven-gpg-plugin</artifactId>
847+
<configuration>
848+
<!-- Prevent gpg from using pinentry programs -->
849+
<gpgArguments>
850+
<arg>--pinentry-mode</arg>
851+
<arg>loopback</arg>
852+
</gpgArguments>
853+
</configuration>
854+
</plugin>
855+
</plugins>
856+
</pluginManagement>
857+
</build>
858+
</profile>
834859
</profiles>
835860
</project>

0 commit comments

Comments
 (0)