Skip to content

Commit

Permalink
Merge pull request #64 from cyberark/izgeri-patch-1
Browse files Browse the repository at this point in the history
Bump version to 2.2.0
  • Loading branch information
sgnn7 authored Apr 30, 2020
2 parents 9c5d3a6 + f1e8373 commit a07dcdc
Show file tree
Hide file tree
Showing 11 changed files with 1,159 additions and 18 deletions.
24 changes: 22 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,25 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## 2.1.0 - 2018-08-24
## [2.2.0] - 2020-04-30
### Added
- Enabled supplying alternative authentication URLs when instantiating the client,
which allows clients to use alternative Conjur authentication methods such as
authn-iam and authn-oidc. ([cyberark/conjur-api-java#40](https://github.com/cyberark/conjur-api-java/issues/40))
- Maven pom.xml file includes fat jar creation to allow easy incorporation of
this client ([PR cyberark/conjur-api-java#47](https://github.com/cyberark/conjur-api-java/issues/47))

### Fixed
- Updated code so that properties will be retrieved from system properties, and
if not found will then be retrieved from environment variables. ([cyberark/conjur-api-java#17](https://github.com/cyberark/conjur-api-java/issues/17))
- If a mandatory property (`CONJUR_ACCOUNT`, `CONJUR_APPLIANCE_URL`) is not provided
a more verbose exception message will be thrown instead of a `NullPointerException`.
([cyberark/conjur-api-java#41](https://github.com/cyberark/conjur-api-java/issues/41))
- Improved error handling for missing / undefined env properties that are
mandatory for proper system functioning.
([PR cyberark/conjur-api-java#47](https://github.com/cyberark/conjur-api-java/issues/47))

## [2.1.0] - 2018-08-24
### Added
- Adds support for token based authentication to support Kubernetes Authenticator

Expand All @@ -18,5 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Authn tokens now use the new Conjur 5 format - [PR #21](https://github.com/cyberark/conjur-api-java/pull/21)
- Configuration change. When using environment variables, use `CONJUR_AUTHN_LOGIN` and `CONJUR_AUTHN_API_KEY` now instead of `CONJUR_CREDENTIALS` - https://github.com/cyberark/conjur-api-java/commit/60344308fc48cb5380c626e612b91e1e720c03fb

[Unreleased]: https://github.com/cyberark/conjur-api-java/compare/v2.0.0...HEAD
[Unreleased]: https://github.com/cyberark/conjur-api-java/compare/v2.2.0...HEAD
[2.0.0]: https://github.com/cyberark/conjur-api-java/compare/v1.1.0...v2.0.0
[2.1.0]: https://github.com/cyberark/conjur-api-java/compare/v2.0.0...v2.1.0
[2.2.0]: https://github.com/cyberark/conjur-api-java/compare/v2.1.0...v2.2.0
38 changes: 38 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ For general contribution and community guidelines, please see the [community rep
- [Prerequisites](#prerequisites)
- [Building and Testing](#building-and-testing)
- [Troubleshooting Steps](#troubleshooting-steps)
- [Releasing](#releasing)
- [Contribution Workflow](#contribution-workflow)

## Prerequisites
Expand Down Expand Up @@ -58,6 +59,43 @@ This section includes helpful troubleshooting hints to help you navigate the cod
TTY ("teletype") is a terminal interface (from when terminals were attached to mainframes) that support input/output streams. Since then, pseudo-terminal drivers/emulators were developed to allow terminals to perform actions and send signals without the need to write to terminal directly. When pushing your changes, you may notice that you are receiving the above error because Jenkins doesn't support terminal connection sessions (with stdin and stdout streams) and therefore doesn't execute its jobs in a TTY. To disable this, add `-T` to your docker command.
_NOTE_: this can happen with `cat` as it may sometimes not notice that the input stream has ended.

## Releasing

### Update version, changelog, and dependency info
1. Check whether any dependencies have changed since the last release by
comparing [pom.xml](pom.xml) versions to the dependencies and versions in
[NOTICES.txt](NOTICES.txt). If any dependencies have been added, removed, or
updated, update the NOTICES.txt with those corresponding changes.
1. Review the [CHANGELOG.md](CHANGELOG.md) against the unreleased commits and
make sure all user-relevant changes have been captured.
1. Based on the unreleased content, determine the new version number and update
the version tag in [pom.xml](pom.xml) and add the version to the
[CHANGELOG.md](CHANGELOG.md).
1. Commit these changes - `Bump version to x.y.z` is an acceptable commit
message - and open a PR for review. Your PR should include updates to
`pom.xml`, `CHANGELOG.md`, and if there are any dependency updates since
the last tag, to `NOTICES.txt`.

### Add a git tag
1. Once your changes have been reviewed and merged into master, tag the version
using `git tag -s vx.y.z -m vx.y.z`. Note: this requires you to be able to
sign releases. Consult the [github documentation on signing commits](https://help.github.com/articles/signing-commits-with-gpg/)
on how to set this up.
1. Push the tag: `git push vx.y.z` (or `git push origin vx.y.z` if you are working
from your local machine).

### Publish the release
1. **From a clean checkout of master** build a tarball of the repo by running
`./bin/package.sh`, which outputs `output/dist/conjur-api-java.tar.gz` and
`output/dist/SHA256SUMS.txt`.
1. Create a GitHub release from the tag, add a description by copying the
CHANGELOG entries from the version, and upload the release artifacts from
`output/dist/` that you created in the last step. The following artifacts
should also be updated to the release:
- CHANGELOG.md
- LICENSE
- NOTICES.txt

## Contribution Workflow
1. Fork or clone repository
2. If issue for relevant change has not been created, open one [here](https://github.com/cyberark/conjur-api-java/issues)
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ pipeline {

stage('Create and archive the Maven package') {
steps {
sh './build.sh'
sh './bin/build.sh'
}
}

stage('Run tests and archive test results') {
steps {
lock("api-java-${env.NODE_NAME}") {
sh './test.sh'
sh './bin/test.sh'
}

junit 'target/surefire-reports/*.xml'
Expand Down
Loading

0 comments on commit a07dcdc

Please sign in to comment.