The purpose of this document is to capture and describe the steps involved in producing
an official release of Apache NiFi. It is written specifically to someone acting in the
capacity of a Release Manager (RM).
Our aim is to produce an official Apache release from an existing release branch.
These documents are necessary for all committers to be familiar with
These documents are necessary for someone acting as the RM
These documents are helpful for general environmental setup to perform releases
Throughout this guide, references must be made to names and values that will vary from release to release. For clarity
those variable values have been written like Bash variable references. When a term like
"/tmp/src/nifi-${NIFI_VERSION}
" is seen in an instruction or email template it should be replaced with
"/tmp/src/nifi-0.7.0
" when working the release of "Apache NiFi 0.7.0".
Substitutions used in tasks and email templates
Reference Example value Description
========= ============== ===========
${BRANCH} main the development branch on which the release is based.
${NIFI_VERSION} 0.7.0 the version currently in development on the release branch.
${NEXT_VERSION} 0.8.0-SNAPSHOT the future version for development on the release branch.
${JIRA_TICKET} NIFI-2112 the JIRA ticket created by the release manager for the release tasks.
${RC} 2 the Release Candidate index start at 1 for the first release candidate.
${RC_TAG_COMMIT_ID} the 40 byte commit ID of the RC tag created during the Maven release process.
${STAGING_REPO_ID} orgapachenifi-1088 the temporary repository ID where staged artifacts have been placed.
${RM_USERID} johndoe the Apache account ID of Release Manager.
${RELEASE_TAG} rel/nifi-0.7.0 the Git repository tag for the source code as released.
${VOTE_THREAD_URL} 0.7.0 vote thread the URL for the Apache Pony Mail archive of the release vote thread.
To be practical but avoid confusion with future release details, these example values reflect the previous release
NiFi 0.7.0 RC2 release details.
NOTE: The next version should be the next minor version if the release is based on a major version development branch (e.g main
or 0.x). The next version should be the next incremental version if the release is based on a minor version development branch (e.g
support/nifi-1.1.x or support/nifi-0.7.4). If this is the first incremental release (e.g. 1.2.1) for a minor release line the support
branch may need to be created.
The following is a list of the sorts of things that will be validated and are the basics to check
when evaluating a release for a vote.
nifi-${NIFI_VERSION}-sources-release.zip
artifact and ensure these files arehttps://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip
https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.sha256
https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.sha512
https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.asc
mvn install -Pcontrib-check,include-grpc
This list is reflected in the Release Vote and Release Helper Guide emails that are sent once the release has been
staged in the Git and Nexus repositories.
The release process includes steps to be performed by the Release Manager as well as the
Apache NiFi developer community.
$ git remote -v
asf https://gitbox.apache.org/repos/asf/nifi.git (fetch)
asf https://gitbox.apache.org/repos/asf/nifi.git (push)
origin https://github.com/${RM_USERID}/nifi.git (fetch)
origin https://github.com/${RM_USERID}/nifi.git (push)
Additional remotes will not cause a problem if these two are correct. Other configurations are perfectlygit checkout ${BRANCH}
$ git checkout -b ${JIRA_TICKET}-RC${RC} ${BRANCH}
$ export MAVEN_OPTS="-Xms1024m -Xmx3076m"
$ export MAVEN_OPTS="-Xms1024m -Xmx3076m -XX:MaxPermSize=256m"
signed_release
profile and a <server>
entry for <profile>
<id>signed_release</id>
<properties>
<mavenExecutorId>forked-path</mavenExecutorId>
<gpg.keyname>${RM_USERID}@apache.org</gpg.keyname>
<gpg.passphrase>GPG passphrase</gpg.passphrase>
</properties>
</profile>
<servers>
<server>
<id>repository.apache.org</id>
<username>${RM_USERID}</username>
<password>ENCRYPTED PASSWORD HERE</password>
</server>
</servers>
$ mvn -T 2.5C clean install -Pinclude-grpc
$ cd nifi-assembly/target/nifi-${NIFI_VERSION}-bin/nifi-${NIFI_VERSION}
$ bin/nifi.sh start
contrib-check
profile enabled to validate contribution expectations and find any$ mvn install -Pcontrib-check,include-grpc
Now its time to have maven prepare the release with this command.
NOTE: gpg
will be invoked during this step, which will need to prompt you for a password. From the command line, use
export GPG_TTY=$(tty)
to allow gpg
to prompt you.
$ mvn --batch-mode release:prepare \
-Psigned_release,include-grpc \
-DscmCommentPrefix="${JIRA_TICKET}-RC${RC} " \
-Dtag="nifi-${NIFI_VERSION}-RC${RC}" \
-DreleaseVersion="${NIFI_VERSION}" \
-DdevelopmentVersion="${NEXT_VERSION}" \
-Darguments="-DskipTests"
Review the release preparation results. If problems are found $ mvn release:rollback
will reset the changes, or
it may be necessary to run $ mvn release:clean
to get the project to a state where it can be rebuilt.
If the preparation without problems, it is time to perform the release and deploy artifacts to staging.
$ mvn release:perform \
-Psigned_release,include-grpc \
-DscmCommentPrefix="${JIRA_TICKET}-RC${RC} " \
-Darguments="-DskipTests"
When this completes the artifacts have been released to the Apache Nexus staging repository, a local release branch
has been created and there should the staging repository ID returned in a log entry like this.
[INFO] * Closing staging repository with ID "orgapachenifi-1088"
This staging repository ID is referred to by ${STAGING_REPO_ID} in this release guide.
Browse to the Apache Staging Repository and
login with your Apache committer credentials and you should see the newly created staging repository listed. If you
click on that you can inspect the various staged artifacts.
Validate that all the various aspects of the staged artifacts appear correct
wget https://repository.apache.org/service/local/repositories/orgapachenifi-nnnn/content/org/apache/nifi/nifi/${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip
wget https://repository.apache.org/service/local/repositories/orgapachenifi-nnnn/content/org/apache/nifi/nifi/${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.asc
The validated artifacts all look good then push the branch to origin release branch to the ASF repository.
$ git push asf ${JIRA_TICKET}-RC${RC}
From this branch, the ${RC_TAG_COMMIT_ID} will be the 40 byte commit hash with the comment ${JIRA_TICKET}-RC${RC} prepare release nifi-${NIFI_VERSION}-RC${RC}
Push the tag created by the release:prepare step to the ASF repository.
git push asf nifi-${NIFI_VERSION}-RC${RC}
Create the signature and hashes for the source release and convenience binary files. You take the source release and signature from steps above. You grab the other conveniece binaries from your local build directories.
--digest-algo=SHA512
select the SHA512 hash algorithm). Configure GPG to always prefer stronger hashes.
$ gpg -a -b --digest-algo=SHA512 nifi-${NIFI_VERSION}-bin.tar.gz # produces nifi-${NIFI_VERSION}-bin.tar.gz.asc
$ gpg -a -b --digest-algo=SHA512 nifi-${NIFI_VERSION}-bin.zip # produces nifi-${NIFI_VERSION}-bin.zip.asc
$ gpg -a -b --digest-algo=SHA512 nifi-toolkit-${NIFI_VERSION}-bin.zip # produces nifi-toolkit-${NIFI_VERSION}-bin.zip.asc
$ gpg -a -b --digest-algo=SHA512 nifi-toolkit-${NIFI_VERSION}-bin.tar.gz # produces nifi-toolkit-${NIFI_VERSION}-bin.tar.gz.asc
$ shasum -a 256 nifi-${NIFI_VERSION}-source-release.zip | cut -d" " -f1 > nifi-${NIFI_VERSION}-source-release.zip.sha256
$ shasum -a 256 nifi-${NIFI_VERSION}-bin.tar.gz | cut -d" " -f1 > nifi-${NIFI_VERSION}-bin.tar.gz.sha256
$ shasum -a 256 nifi-${NIFI_VERSION}-bin.zip | cut -d" " -f1 > nifi-${NIFI_VERSION}-bin.zip.sha256
$ shasum -a 256 nifi-toolkit-${NIFI_VERSION}-bin.zip | cut -d" " -f1 > nifi-toolkit-${NIFI_VERSION}-bin.zip.sha256
$ shasum -a 256 nifi-toolkit-${NIFI_VERSION}-bin.tar.gz | cut -d" " -f1 > nifi-toolkit-${NIFI_VERSION}-bin.tar.gz.sha256
$ shasum -a 512 nifi-${NIFI_VERSION}-source-release.zip | cut -d" " -f1 > nifi-${NIFI_VERSION}-source-release.zip.sha512
$ shasum -a 512 nifi-${NIFI_VERSION}-bin.tar.gz | cut -d" " -f1 > nifi-${NIFI_VERSION}-bin.tar.gz.sha512
$ shasum -a 512 nifi-${NIFI_VERSION}-bin.zip | cut -d" " -f1 > nifi-${NIFI_VERSION}-bin.zip.sha512
$ shasum -a 512 nifi-toolkit-${NIFI_VERSION}-bin.zip | cut -d" " -f1 > nifi-toolkit-${NIFI_VERSION}-bin.zip.sha512
$ shasum -a 512 nifi-toolkit-${NIFI_VERSION}-bin.tar.gz | cut -d" " -f1 > nifi-toolkit-${NIFI_VERSION}-bin.tar.gz.sha512
For reviewing of the release candidate, commit the source release and convenience binaries files along with their
hashes and signatures to https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}
. There should be in total 20 files (5 primary artifacts, 5 signatures, 5 sha256, 5 sha512).
If anything isn't correct about the staged artifacts you can drop the staged repo from repository.apache.org and delete
the local tag in git. If you also delete the local branch and clear your local maven repository under org/apache/nifi
then it is as if the release never happened. Before doing that though try to figure out what went wrong so the Release
Guide can be updated or corrected if necessary.
So, as has been described here you can test the release process until you get it right. The mvn versions:set -Pinclude-grpc
and
mvn versions:commit -Pinclude-grpc
commands can come in handy to help do this so you can set versions to something clearly release
test related.
After the release source and artifacts are staged in the repositories it's time for the RM to send a release vote to the
NiFi community.
Once the release vote is called for, members of the NiFi developer community have 72 hours to evaluate the RC and
cast their vote by replying to the "[VOTE] Release ..." email sent by the RM.
NOTE: The release vote is majority rule vote that must include at least 3 binding +1 votes Apache NiFi PMC members
and more positive than negative binding votes.
RM sends a vote request email to the NiFi Developers Mailing List.
dev@nifi.apache.org
${RM_USERID}@apache.org
[VOTE] Release Apache NiFi ${NIFI_VERSION}
Hello,
I am pleased to be calling this vote for the source release of Apache NiFi nifi-${NIFI_VERSION}.
The source zip, including signatures, digests, etc. can be found at:
https://repository.apache.org/content/repositories/orgapachenifi-nnnn
The source being voted upon and the convenience binaries can be found at:
https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/
A helpful reminder on how the release candidate verification process works:
https://cwiki.apache.org/confluence/display/NIFI/How+to+help+verify+an+Apache+NiFi+release+candidate
The Git tag is nifi-${NIFI_VERSION}-RC${RC}
The Git commit ID is ${RC_TAG_COMMIT_ID}
https://gitbox.apache.org/repos/asf?p=nifi.git;a=commit;h=${RC_TAG_COMMIT_ID}
Checksums of nifi-x.y.z-source-release.zip:
SHA256: <64-CHAR-SHA256SUM-HASH>
SHA512: <128-CHAR-SHA512SUM-HASH>
Release artifacts are signed with the following key:
https://people.apache.org/keys/committer/${RM_USERID}.asc
KEYS file available here:
https://dist.apache.org/repos/dist/release/nifi/KEYS
8 issues were closed/resolved for this release:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12329307
Release note highlights can be found here:
https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version${NIFI_VERSION}
The vote will be open for 72 hours.
Please download the release candidate and evaluate the necessary items including checking hashes, signatures, build
from source, and test. Then please vote:
[ ] +1 Release this package as nifi-${NIFI_VERSION}
[ ] +0 no opinion
[ ] -1 Do not release this package because...
Developers in the community review the release candidate and reply to the vote email with their vote.
After 72 hours if
the vote passes and the release candidate is officially released. If the vote does not pass, corrections are made
on the release branch and a new release candidate is put forward for a new vote.
RM sends vote result email.
dev@nifi.apache.org
${RM_USERID}@apache.org
[RESULT][VOTE] Release Apache NiFi ${NIFI_VERSION}
Apache NiFi Community,
I am pleased to announce that the ${NIFI_VERSION} release of Apache NiFi passes with
X +1 (binding) votes
Y +1 (non-binding) votes
0 0 votes
0 -1 votes
Thanks to all who helped make this release possible.
Here is the PMC vote thread: ${VOTE_THREAD_URL}
After the vote is complete and the release is approved, these steps complete the release process.
Move convenience binaries and related artifacts from dist/dev to dist/release:
$ svn move -m "${JIRA_TICKET}" https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION} https://dist.apache.org/repos/dist/release/nifi/${NIFI_VERSION}
In repository.apache.org go to the staging repository and select release
and follow the instructions on the site.
Merge the release branch into main. (this will result in a merge commit)
$ git checkout main
$ git merge --no-ff ${JIRA_TICKET}-RC${RC}
$ git push asf main
Update Docker version information to point to the next release. For instance, if the next version applied by Maven is 1.3.0-SNAPSHOT, these values should be updated to 1.3.0. This currently consists of three files:
Commit and push the dockerhub module updates to the ASF repository:
git commit -m "${JIRA_TICKET} Updated dockerhub module for next release"
git push asf main
Update the NiFi website to point to the new download(s). Remove older release artifacts from download page (leave
the current release and the previous one). For the release just previous to this new one change the links to point to
the archive location. See current page as an example of the needed URL changes.
Remove artifacts other than the current/new release from the dist/SVN storage https://dist.apache.org/repos/dist/release/nifi/ Confirm the artifacts you deleted are present in apache archive where ASF keeps all releases forever http://archive.apache.org/dist/nifi/
Update the Migration Guide on the Wiki.
If the release is on the latest development line, update the NiFi website documentation pages to match the release. (This section will be updated when a complete plan for maintaining different versions of the guides, API docs, etc. is available.)
wget -prk http://${host}:${port}/nifi-docs/documentation
mv -v ${host}\:${port} ${NIFI_VERSION}-docs
mv -v ${NIFI_VERSION}-docs/nifi-docs/documentation ${NIFI_VERSION}-docs/nifi-docs/index.html
rsync
is used to avoid issues with recursion and merging)
svn co https://svn.apache.org/repos/asf/nifi/site/trunk/docs svn-docs
nifi
directory (site JS assets, images, etc.) by running rsync -av ${NIFI_VERSION}-docs/nifi/ svn-docs/nifi/
nifi-docs/...
directories (guides, API docs, JS/CSS assets, images, etc. but excluding component
docs) by running rsync -av --delete --exclude='components' ${NIFI_VERSION}-docs/nifi-docs/ svn-docs/nifi-docs/
(the trailing slashes are important)rsync -av ${NIFI_VERSION}-docs/nifi-docs/components/ svn-docs/nifi-docs/components/
svn st svn-docs
cd svn-docs && svn add . --force
svn ci -m "Added ${NIFI_VERSION} docs to NiFi site."
In JIRA mark the release version as 'Released' and 'Archived' through 'version' management in the 'administration' console.
Ensure the release artifacts are successfully mirrored to the archive, specifically https://archive.apache.org/dist/nifi/${NIFI_VERSION}/nifi-${NIFI_VERSION}-bin.tar.gz.
This convenience binary file is the basis for our Docker build and is needed in place before the released tag is pushed to the repository. If there were any
issues with the above listed file not being available, it may be necessary to reach out to the ASF Infra team to adjust file size limits to accommodate larger artifacts.
NOTE: The Docker build is triggered by pushing the signed tag in the next step. The release artifacts must be present
in the archive before continuing.
Create a proper signed tag of the released codebase based on the RC Tag created during the Maven release process.
NOTE: gpg
will be invoked during this step, which will need to prompt you for a password. From the command line, use
export GPG_TTY=$(tty)
to allow gpg
to prompt you.
$ git tag -s rel/nifi-${NIFI_VERSION} -m "${JIRA_TICKET} Signed release tag for approved release of NiFi ${NIFI_VERSION}" ${RC_TAG_COMMIT_ID}
For instructions on setting up to sign your tag see here.
Push the release tag to the official ASF repository.
$ git push asf rel/nifi-${NIFI_VERSION}
Verify that the Docker build began at the Build Status page. If the build does not take place soon after the release tag was pushed, it may be necessary to contact ASF Infra to ask for assistance and the job to be triggered again.
Update the release notes with the final date of the release.
After the release has been complete for 24 hours send the release announcement.
announce@apache.org
, dev@nifi.apache.org
dev@nifi.apache.org
[ANNOUNCE] Apache NiFi x.y.z release
.Hello
The Apache NiFi team would like to announce the release of Apache NiFi ${NIFI_VERSION}.
Apache NiFi is an easy to use, powerful, and reliable system to process and distribute
data. Apache NiFi was made for dataflow. It supports highly configurable directed graphs
of data routing, transformation, and system mediation logic.
More details on Apache NiFi can be found here:
https://nifi.apache.org/
The release artifacts can be downloaded from here:
https://nifi.apache.org/download.html
Maven artifacts have been made available and mirrored as per normal ASF artifact processes.
Issues closed/resolved for this list can be found here:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12329373
Release note highlights can be found here:
https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version${NIFI_VERSION}
Thank you
The Apache NiFi team