-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support failOnStdErr on Helm Task #12211
Support failOnStdErr on Helm Task #12211
Conversation
Tasks/HelmDeployV0/src/helm.ts
Outdated
@@ -73,6 +73,7 @@ async function run() { | |||
command: command, | |||
jobId: tl.getVariable('SYSTEM_JOBID') | |||
}; | |||
var failOnStderr = tl.getBoolInput("failOnStderr", true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not mandatory input so keep false.
Increase task.json minor version to 165 and patchversion to 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed both
Tasks/HelmDeployV0/task.json
Outdated
@@ -13,7 +13,7 @@ | |||
"author": "Microsoft Corporation", | |||
"version": { | |||
"Major": 0, | |||
"Minor": 165, | |||
"Minor": 166, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should be 165 and Patch version should be 1.
0.165.1
please make change in task.loc.json also and add new strings to strings/en-US/resources.resjson.
Follow https://github.com/microsoft/azure-pipelines-tasks/blob/master/docs/contribute.md to build task if you build task it automatically do changes in task.loca.json and adds new string to resources files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
* add failOnStdErr to helm
* Support failOnStdErr on Helm Task (#12211) * add failOnStdErr to helm * Updating task version * Updating task version Co-authored-by: balteravishay <[email protected]>
Fixes issue 1660207: In Helm3 some of the commands writing output to stderr due to this even deployment successful, task showing fail because task look at stderr and if any data exist it fails
Suggested fix: