Add signing to Tycho build
diff --git a/Jenkinsfile b/Jenkinsfile
index d4190ce..ecb43a5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -20,7 +20,7 @@
stages {
stage('Build') {
steps {
- sh 'mvn -B -T 1C clean install'
+ sh 'mvn -B -T 1C clean install -P eclipse-sign'
}
}
stage('Plain Maven build') {
diff --git a/pom.xml b/pom.xml
index d973f26..00a5edc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,4 +137,36 @@
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>eclipse-sign</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <!-- https://www.eclipse.org/cbi/sitedocs/eclipse-jarsigner-plugin/plugin-info.html -->
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-jarsigner-plugin</artifactId>
+ <version>1.1.7</version>
+ <!--configuration>
+ <signerUrl>http://build.eclipse.org:31338/sign</signerUrl>
+ </configuration-->
+ <executions>
+ <execution>
+ <id>sign</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>