Skip to content

Commit a40e4f1

Browse files
authored
[#332] pgp sign cdt-lsp repo (#335)
1 parent e2e2a76 commit a40e4f1

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

Jenkinsfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,20 @@ pipeline {
3434
container('cdt') {
3535
timeout(activity: true, time: 20) {
3636
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
37+
withCredentials([string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')]) {
3738
sh '''
3839
export PATH=$PWD/clangd_15.0.6/bin:$PATH
3940
which clangd
4041
clangd --version
4142
/jipp/tools/apache-maven/latest/bin/mvn \
4243
clean verify -B -V -X -e \
4344
-Dmaven.test.failure.ignore=true \
45+
-Dgpg.passphrase="${KEYRING_PASSPHRASE}" \
4446
-P production \
4547
-Dmaven.repo.local=/home/jenkins/.m2/repository \
4648
--settings /home/jenkins/.m2/settings.xml \
4749
'''
50+
}
4851
}
4952
}
5053
}

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,23 @@
3737
<artifactId>tycho-p2-director-plugin</artifactId>
3838
<version>${tycho.version}</version>
3939
</plugin>
40+
<plugin>
41+
<groupId>org.eclipse.tycho</groupId>
42+
<artifactId>tycho-gpg-plugin</artifactId>
43+
<version>${tycho.version}</version>
44+
<executions>
45+
<execution>
46+
<id>pgpsigner</id>
47+
<goals>
48+
<goal>sign-p2-artifacts</goal>
49+
</goals>
50+
<configuration>
51+
<keyname>4F23165B6AC51B15</keyname>
52+
<skipIfJarsigned>false</skipIfJarsigned>
53+
</configuration>
54+
</execution>
55+
</executions>
56+
</plugin>
4057
<plugin>
4158
<groupId>org.eclipse.tycho</groupId>
4259
<artifactId>tycho-surefire-plugin</artifactId>

releng/org.eclipse.cdt.lsp.repository/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,17 @@
2828
<build>
2929
<finalName>${project.artifactId}</finalName>
3030
</build>
31+
<profiles>
32+
<profile>
33+
<id>production</id>
34+
<build>
35+
<plugins>
36+
<plugin>
37+
<groupId>org.eclipse.tycho</groupId>
38+
<artifactId>tycho-gpg-plugin</artifactId>
39+
</plugin>
40+
</plugins>
41+
</build>
42+
</profile>
43+
</profiles>
3144
</project>

0 commit comments

Comments
 (0)