Skip to content

Commit 7b35266

Browse files
committed
fully automate maven release process
1 parent 27cef98 commit 7b35266

9 files changed

+180
-13
lines changed

.travis.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ cache:
2020

2121
# do some preparations before the install phase
2222
before_install:
23-
- "git clone -b travis `git config --get remote.origin.url` target/travis"
2423
- pip install --user codecov
2524

2625
# No need to run mvn install, so skip this step
@@ -33,18 +32,22 @@ before_script:
3332

3433
# run branch dependent build using a separate script
3534
# make sure, script is executable (http://blog.lesc.se/2011/11/how-to-change-file-premissions-in-git.html)
36-
script: "./target/travis/gcviewer-script.sh"
35+
script: "./cicd/gcviewer-script.sh"
3736

3837
after_success:
3938
- codecov
4039

4140
# for configuration of maven deploy see http://knowm.org/configure-travis-ci-to-deploy-snapshots/
4241
env:
4342
global:
43+
- GPG_DIR="`pwd`/cicd/gpg"
4444
- secure: arRS4YHFdZWyl7KmduSdzOF1JGm1qOWDLp1fwtzCkGUx58G3RrhhBIynK3TuSnnUTYsmS+DyxR/R+v3QhaEjschR4Aeolq9StJGvUBssTS+oCqcLe3qLiHyy9YClCb8xSPebYNgrxEox0MuEGG73TFRUrGLHxesBo9OfLgIiGpV+kez2cBD+iFWEfNA9oeO3x3fa7Ry/YBrRfUkA5gKR41Bw/oOf+5T0HAKMpfMMmCneu7EtA3z7cWHhEEBwydwUI+szS3ozsbyUcleLwTlwabLXEB3rF3c/rU2Zy/1CLfWzJwCmy47HfclTalj/ckNxh5pK9aQwVqFM3B8ECPBUOksYm28oREgcRFbLqrtRnrKMM5tvqHXsb3r7VyJkNzFenV8e3WES8kCL7z5yuCstac395AlLRBCWTEWbHiiKTIYfx4awY5lK2CxptCf+8mzzkfltQp6HOViLw+X9c/G4MNTUWlDeMnw3JB81Rm5qaKv4gNjq9G0cPS9rzRN6SwksIEZ2i2JmVzCOoU7tWgH6ahcBDU3jJI3bwODzkzND5j0y9jKtooYEKPAH2v5b/uB/6KIlCLa/jZQcCzuTrOlKT6/Zcx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N8aXJWYy0tjvKGPyXzvT+8o1xOuer9esqDtue8tZ7VlTcugPphJJtVdASPyN+8jI/mBZEp5+GPQUZIeTsAII5GzuWNJURgTbDUKZNQTPpsn+QP0cGl53waBXrA76bBFfPZxI42PEiMzaKljMuEUl9fm9KoZvVpUiDO9/N4K+8/dYGD+AMa0ny+P/gL+HS9r6nLiylF842pHzLjptin4w+8JwCyzvD7Jz+lcrwuc/XdL025V4qtPFKkaN6OvC9dcjtwkf7CVToayyLI2vR1hMLkJu/bgniMS7Wg0jHzD81zYdtbuksG98qUOO7nDp7U/BZvvHhOFVW7fXYcigwknLlW+b0z3bfKbWOfl/Hlt00UNR2nxGLb4sotQJWGfS4jdltN9FXmTMcrKSKgLYWb0hBY06Rk6Dbli2I/We3295kklVtusebpyX3peQzRT4aws6kmXlWdaHEDus5jfTgvVMm+5u7mB2UhO0kXUnFvkytgj8PROubiAMzfmFDGzE+4+aW4ihWA5OimrEyUZk4LWpQ6IV/l80yFNj2Q1EXTXBzaRpOk4xoQ4l0ZTLa6aPWDWgalnnMjZceTkdOJBf8rHOfo="
4952
# don't configure any notifications and use defaults from travis
5053
# see http://docs.travis-ci.com/user/notifications/ (notifications for broken builds and when status changes)

cicd/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM ruby:latest
2+
3+
RUN gem install travis
4+
5+
CMD /bin/bash

cicd/README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# cicd
2+
This directory contains a settings.xml + script file that can be used to
3+
deploy to the SonaType OSS repository from a Travis CI build.
4+
5+
The full instructions are here:
6+
http://knowm.org/configure-travis-ci-to-deploy-snapshots/
7+
8+
# gpg
9+
## documentation
10+
- https://stackoverflow.com/questions/38276762/travis-gpg-signing-failed-secret-key-not-available
11+
- https://github.com/making/travis-ci-maven-deploy-skelton
12+
- https://www.gnupg.org/gph/en/manual.html
13+
14+
expiration date of current keys: 2021-11-28
15+
16+
## issues with outdated openssl version in travis-ci (30.11.2019)
17+
-> docker ruby image (ruby 2.6.5p114) uses openssl 1.1.1d; travis-ci uses openssl 1.0.2g
18+
-> preferred command would be "openssl enc -e -v -iter 3 -aes-256-cbc -pass pass:$ENCRYPTION_PASSWORD -in ./xxx.gpg -out xxx.gpg.enc"
19+
two issues:
20+
- "-iter 3" is not known -> drop option
21+
- key derivation mechanism was changed between openssl 1.1.x and 1.0.x
22+
-- https://stackoverflow.com/questions/39637388/encryption-decryption-doesnt-work-well-between-two-different-openssl-versions/39641378#39641378
23+
-- -> use -md sha1 to enable decryption by openssl 1.0.x
24+
25+
## steps to create / renew pubring.gpg.enc + secring.gpg.enc
26+
### run docker image
27+
- docker run --rm -it --mount type=bind,src=D:\Users\joerg2\Daten\java\git\GCViewer\cicd\gpg,dst=/usr/gpg ruby/travis /bin/bash
28+
- cd /usr/gpg
29+
30+
### create private + public key
31+
- gpg --generate-key
32+
33+
-- gpg zert für maven signierung
34+
- gpg --output pubring.gpg --export [email protected]
35+
- gpg --armor --export [email protected] > pubring.gpg.txt
36+
-- upload to public key server (http://keyserver.ubuntu.com:11371)
37+
- gpg --export-secret-keys > secring.gpg
38+
39+
### encrypt keys
40+
- export ENCRYPTION_PASSWORD=<encryption password>
41+
- openssl enc -e -v -aes-256-cbc -md sha1 -pass pass:$ENCRYPTION_PASSWORD -in ./pubring.gpg -out ./pubring.gpg.enc
42+
- openssl enc -e -v -aes-256-cbc -md sha1 -pass pass:$ENCRYPTION_PASSWORD -in ./secring.gpg -out ./secring.gpg.enc

cicd/gcviewer-script.sh

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
#!/bin/bash
2+
# -e: exit on any non-true return value
3+
# -u: exit, if an unset variable is being used
4+
# https://ss64.com/bash/set.html
5+
set -eu
6+
7+
echo "TRAVIS_PULL_REQUEST = ${TRAVIS_PULL_REQUEST}"
8+
echo "TRAVIS_BRANCH = ${TRAVIS_BRANCH}"
9+
echo "TRAVIS_JDK_VERSION = ${TRAVIS_JDK_VERSION}"
10+
11+
#####################
12+
# functions
13+
#####################
14+
function perform_snapshot_release() {
15+
echo "----------------"
16+
echo build and deploy to sourceforge \(SNAPSHOT only\)
17+
echo "----------------"
18+
mvn clean deploy javadoc:javadoc -P sourceforge-release --settings ./cicd/settings.xml
19+
}
20+
21+
function init_github() {
22+
git config --global user.email "[email protected]"
23+
git config --global user.name "Travis CI"
24+
git remote add origin-github https://${GH_TOKEN}@github.com/chewiebug/gcviewer.git > /dev/null 2>&1
25+
}
26+
27+
function push_to_github() {
28+
# https://gist.github.com/willprice/e07efd73fb7f13f917ea
29+
echo "pushing $1 to github"
30+
git status
31+
git push --quiet --set-upstream origin-github $1
32+
}
33+
34+
function merge_with_develop_branch() {
35+
# assumption: we are not on the develop branch and should merge TRAVIS_BRANCH into develop
36+
echo "merging ${TRAVIS_BRANCH} into develop"
37+
# since travis did a shallow clone (git clone --depth=50 ...), we need to fetch the develop branch first
38+
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
39+
git fetch --depth=10
40+
git checkout -t -b develop origin/develop
41+
git merge ${TRAVIS_BRANCH}
42+
}
43+
44+
function perform_release() {
45+
echo "----------------"
46+
echo perform release
47+
echo "----------------"
48+
# maven release needs a locally checked out branch, otherwise "git symbolic-ref HEAD" will fail
49+
git checkout ${TRAVIS_BRANCH}
50+
openssl version
51+
openssl enc -d -aes-256-cbc -md sha1 -pass pass:$ENCRYPTION_PASSWORD -in $GPG_DIR/pubring.gpg.enc -out $GPG_DIR/pubring.gpg
52+
openssl enc -d -aes-256-cbc -md sha1 -pass pass:$ENCRYPTION_PASSWORD -in $GPG_DIR/secring.gpg.enc -out $GPG_DIR/secring.gpg
53+
mvn --batch-mode release:clean release:prepare release:perform --settings ./cicd/settings.xml
54+
# remove decrypted keyrings
55+
rm $GPG_DIR/*.gpg
56+
init_github
57+
push_to_github ${TRAVIS_BRANCH}
58+
# push tag, which was just generated by maven-release-plugin
59+
git push origin-github $(git describe --tags --abbrev=0)
60+
merge_with_develop_branch
61+
push_to_github develop
62+
}
63+
64+
function perform_verify() {
65+
echo "----------------"
66+
echo only verify
67+
echo "----------------"
68+
mvn clean verify javadoc:javadoc
69+
}
70+
71+
#####################
72+
# script
73+
#####################
74+
# Since the same script is run several times with different jdks by the build process,
75+
# only under certain conditions, a (snapshot) release should be built.
76+
# Among others, a build loop must be prevented after a "perform_release" build was executed.
77+
# All other cases (like pull requests) only perform a "verify"
78+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [[ ! "${TRAVIS_COMMIT_MESSAGE}" = \[maven-release-plugin\]* ]] && [ "${TRAVIS_JDK_VERSION}" = "openjdk8" ]
79+
then
80+
if [ "${TRAVIS_BRANCH}" = "develop" ]
81+
then
82+
perform_snapshot_release
83+
elif [[ "${TRAVIS_BRANCH}" = "master" ]]
84+
then
85+
perform_release
86+
else
87+
# will be done for all other branches pushed into this repository
88+
perform_verify
89+
fi
90+
else
91+
perform_verify
92+
fi

cicd/gpg/pubring.gpg.enc

1.72 KB
Binary file not shown.

cicd/gpg/secring.gpg.enc

3.72 KB
Binary file not shown.

cicd/run-docker.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker run --rm -it --mount type=bind,src=%cd%\gpg,dst=/usr/gpg ruby/travis /bin/bash

cicd/settings.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
>
3+
4+
<servers>
5+
<server>
6+
<id>ossrh</id>
7+
<username>${env.CI_DEPLOY_USERNAME}</username>
8+
<password>${env.CI_DEPLOY_PASSWORD}</password>
9+
</server>
10+
</servers>
11+
</settings>

pom.xml

+23-10
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@
207207
<maven.surefire.plugin.version>2.22.1</maven.surefire.plugin.version>
208208
<maven.release.plugin.version>2.5.3</maven.release.plugin.version>
209209
<maven.site.plugin.version>3.7.1</maven.site.plugin.version>
210-
<maven.scm.plugin.version>1.11.1</maven.scm.plugin.version>
210+
<!-- https://issues.apache.org/jira/browse/MRELEASE-1013 -->
211+
<maven.scm.plugin.version>1.10.0</maven.scm.plugin.version>
211212
<maven.deploy.plugin.version>2.8.2</maven.deploy.plugin.version>
212213
<maven.jdeps.plugin.version>3.1.1</maven.jdeps.plugin.version>
213214
<nexus.staging.maven.plugin.version>1.6.8</nexus.staging.maven.plugin.version>
@@ -368,25 +369,29 @@
368369
<artifactId>maven-surefire-plugin</artifactId>
369370
<version>${maven.surefire.plugin.version}</version>
370371
</plugin>
372+
<plugin>
373+
<groupId>org.apache.maven.plugins</groupId>
374+
<artifactId>maven-scm-plugin</artifactId>
375+
<version>${maven.scm.plugin.version}</version>
376+
<configuration>
377+
<providerImplementations>
378+
<git>gitexe</git>
379+
</providerImplementations>
380+
</configuration>
381+
</plugin>
371382
<plugin>
372383
<groupId>org.apache.maven.plugins</groupId>
373384
<artifactId>maven-release-plugin</artifactId>
374385
<version>${maven.release.plugin.version}</version>
375386
<configuration>
376387
<localCheckout>true</localCheckout>
377388
<pushChanges>false</pushChanges>
389+
<remoteTagging>false</remoteTagging>
378390
<goals>deploy</goals>
379391
<tagNameFormat>@{project.version}</tagNameFormat>
380392
<mavenExecutorId>forked-path</mavenExecutorId>
381393
<releaseProfiles>sonatype-oss-release,sourceforge-release</releaseProfiles>
382394
</configuration>
383-
<dependencies>
384-
<dependency>
385-
<groupId>org.apache.maven.plugins</groupId>
386-
<artifactId>maven-scm-plugin</artifactId>
387-
<version>${maven.scm.plugin.version}</version>
388-
</dependency>
389-
</dependencies>
390395
</plugin>
391396
<plugin>
392397
<groupId>org.apache.maven.plugins</groupId>
@@ -547,6 +552,14 @@
547552
<!-- Override plugin versions of Sonatype profile. This needs
548553
to be done here because profiles are not inherited. -->
549554
<id>sonatype-oss-release</id>
555+
<properties>
556+
<gpg.executable>gpg</gpg.executable>
557+
<gpg.keyname>${env.GPG_KEYNAME}</gpg.keyname>
558+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
559+
<gpg.defaultKeyring>false</gpg.defaultKeyring>
560+
<gpg.publicKeyring>${env.GPG_DIR}/pubring.gpg</gpg.publicKeyring>
561+
<gpg.secretKeyring>${env.GPG_DIR}/secring.gpg</gpg.secretKeyring>
562+
</properties>
550563
<build>
551564
<plugins>
552565
<plugin>
@@ -595,7 +608,7 @@
595608
<version>${nexus.staging.maven.plugin.version}</version>
596609
<extensions>true</extensions>
597610
<configuration>
598-
<serverId>sonatype-nexus-snapshots</serverId>
611+
<serverId>ossrh</serverId>
599612
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
600613
<autoReleaseAfterClose>true</autoReleaseAfterClose>
601614
</configuration>
@@ -676,7 +689,7 @@
676689
</profiles>
677690
<distributionManagement>
678691
<snapshotRepository>
679-
<id>sonatype-nexus-snapshots</id>
692+
<id>ossrh</id>
680693
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
681694
</snapshotRepository>
682695
<repository>

0 commit comments

Comments
 (0)