Skip to content

Commit

Permalink
Merge pull request #26 from voyages-sncf-technologies/fix-log
Browse files Browse the repository at this point in the history
Fixed calling a log method that doesn't exist, now using `steps.echo`
  • Loading branch information
thomaslhostis authored Jun 28, 2019
2 parents 748629a + 71b8066 commit 08b4375
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased] - 2019-XX-YY

## [1.1.15] - 2019-06-28
### Fixed
- Calling a log method that doesn't exist, now using `steps.echo`

## [1.1.14] - 2019-06-28
### Added
- added logs for version ID changes & `Set-Cookie` header - thanks @thomaslhostis !
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class JenkinsHTTRequester implements Serializable {
ignoreSslErrors: true,
validResponseCodes: '100:600'

log('Response header Set-Cookie = ' + tryPrettyPrintJSON(response.headers['Set-Cookie']))
steps.echo 'Response header Set-Cookie = ' + tryPrettyPrintJSON(response.headers['Set-Cookie'])

if (!(response.status in [200, 201])) {
this.steps.echo COLOR_RED + tryPrettyPrintJSON(tryParseJSON(response.content)) + COLOR_END
Expand Down

0 comments on commit 08b4375

Please sign in to comment.