Skip to content

Commit

Permalink
Fixed calling a log method that doesn't exist, now using steps.echo
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslhostis committed Jun 28, 2019
1 parent 748629a commit 71b8066
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 71b8066

Please sign in to comment.