Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse TRACE4CPS
trace4cps
Commits
06fbe2a4
Commit
06fbe2a4
authored
Mar 21, 2022
by
Yuri Blankenstein
Browse files
Resolve "Add JAR signing to build"
parent
e061f6d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
06fbe2a4
...
...
@@ -67,6 +67,13 @@ pipeline {
# Configure 'jenkins' profile for build.
BUILD_ARGS="-Pjenkins"
# Configure 'sign' profile for build.
# Sign 'master' branch, to allow checking release signing before deployment.
# Sign releases. Determined based on release version tag name.
if [[ "$GIT_BRANCH" == "master" || "$TAG_NAME" =~ ^v[0-9]+\\.[0-9]+.*$ ]]; then
BUILD_ARGS="$BUILD_ARGS -Psign"
fi
# Override the 'trace4cps.version.enduser' property for releases. Remains 'dev' otherwise.
if [[ "$TAG_NAME" =~ ^v[0-9]+\\.[0-9]+.*$ ]]; then
BUILD_ARGS="$BUILD_ARGS -Dtrace4cps.version.enduser=$TAG_NAME"
...
...
releng/org.eclipse.trace4cps.configuration/pom.xml
View file @
06fbe2a4
...
...
@@ -54,15 +54,15 @@
<!-- Checkstyle version. Should match version used by Eclipse Checkstyle Plugin. -->
<maven.checkstyle.version>
3.1.2
</maven.checkstyle.version>
<checkstyle.version>
8.41
</checkstyle.version>
<!-- Eclipse Common Build Infrastructure version. -->
<eclipse.cbi.version>
1.3.1
</eclipse.cbi.version>
</properties>
<pluginRepositories>
<!--
Dash license plugin.
Given that this contains snapshots, this must be first.
Looking for snapshots on release repos will give an error,
regardless of whether the plugin is present there or not.
-->
<!-- Dash license plugin. -->
<!-- Given that this contains snapshots, this must be first. Looking for snapshots on release repos will give an
error, regardless of whether the plugin is present there or not. -->
<pluginRepository>
<id>
dash-licenses-snapshots
</id>
<url>
https://repo.eclipse.org/content/repositories/dash-licenses-snapshots/
</url>
...
...
@@ -70,8 +70,15 @@
<enabled>
true
</enabled>
</snapshots>
</pluginRepository>
<!-- Eclipse CBI releases. For CBI signing plugins. -->
<pluginRepository>
<id>
eclipse.cbi
</id>
<url>
https://repo.eclipse.org/content/repositories/cbi-releases/
</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<!-- Enable Tycho. -->
...
...
@@ -494,5 +501,29 @@
</plugins>
</build>
</profile>
<!-- Signing. -->
<profile>
<id>
sign
</id>
<build>
<plugins>
<!-- Sign JARs. -->
<plugin>
<groupId>
org.eclipse.cbi.maven.plugins
</groupId>
<artifactId>
eclipse-jarsigner-plugin
</artifactId>
<version>
${eclipse.cbi.version}
</version>
<executions>
<execution>
<id>
sign
</id>
<phase>
verify
</phase>
<goals>
<goal>
sign
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment