Skip to content
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

Merged
merged 5 commits into from
Feb 4, 2020
Merged

Support failOnStdErr on Helm Task #12211

merged 5 commits into from
Feb 4, 2020

Conversation

balteravishay
Copy link
Contributor

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:

  • Adding an option to not fail on standard error.
  • A tick mark (true by default) that adds Fail on Standard Error.
  • customers can choose if they don't want to fail on std error.

@@ -73,6 +73,7 @@ async function run() {
command: command,
jobId: tl.getVariable('SYSTEM_JOBID')
};
var failOnStderr = tl.getBoolInput("failOnStderr", true);
Copy link
Member

@vithati vithati Jan 27, 2020

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed both

@@ -13,7 +13,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 165,
"Minor": 166,
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@vithati vithati merged commit 4f39b2b into microsoft:master Feb 4, 2020
shigupt202 pushed a commit that referenced this pull request Feb 12, 2020
shigupt202 added a commit that referenced this pull request Feb 12, 2020
* Support failOnStdErr on Helm Task (#12211)

* add failOnStdErr to helm

* Updating task version

* Updating task version

Co-authored-by: balteravishay <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants