Skip to content

Commit

Permalink
[#332] pgp sign cdt-lsp repo (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgraham committed May 30, 2024
1 parent e2e2a76 commit a40e4f1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,20 @@ pipeline {
container('cdt') {
timeout(activity: true, time: 20) {
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
withCredentials([string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')]) {
sh '''
export PATH=$PWD/clangd_15.0.6/bin:$PATH
which clangd
clangd --version
/jipp/tools/apache-maven/latest/bin/mvn \
clean verify -B -V -X -e \
-Dmaven.test.failure.ignore=true \
-Dgpg.passphrase="${KEYRING_PASSPHRASE}" \
-P production \
-Dmaven.repo.local=/home/jenkins/.m2/repository \
--settings /home/jenkins/.m2/settings.xml \
'''
}
}
}
}
Expand Down
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho.version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-gpg-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>pgpsigner</id>
<goals>
<goal>sign-p2-artifacts</goal>
</goals>
<configuration>
<keyname>4F23165B6AC51B15</keyname>
<skipIfJarsigned>false</skipIfJarsigned>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions releng/org.eclipse.cdt.lsp.repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,17 @@
<build>
<finalName>${project.artifactId}</finalName>
</build>
<profiles>
<profile>
<id>production</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-gpg-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit a40e4f1

Please sign in to comment.