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

Updated publish methods' to keep it compatible #696

Merged

Conversation

egor-bryzgalov
Copy link
Member

Updated publish methods' to keep it compatible with tasks using different argument types.

Related issue (internal): #356

The approach was chosen taking the following case into consideration:

  • If an empty string is passed to publish method of CodeCoveragePublisher class as additionalCodeCoverageFiles argument we would get the following result:
    ##vso[codecoverage.publish]

  • If we try to pass an empty array we would get:
    ##vso[codecoverage.publish additionalcodecoveragefiles=;]

The approach is to pass a string in any case since it's expected by the TaskCommand class.

@egor-bryzgalov egor-bryzgalov requested review from max-zaytsev, damccorm and a team January 8, 2021 14:40
@egor-bryzgalov egor-bryzgalov self-assigned this Jan 8, 2021
@egor-bryzgalov egor-bryzgalov merged commit a5967c3 into master Jan 12, 2021
@egor-bryzgalov egor-bryzgalov deleted the users/egor-bryzgalov/publish-methods-sign-changed branch January 12, 2021 09:24
fullstackinfo pushed a commit to fullstackinfo/azure-pipelines-task-lib that referenced this pull request Aug 17, 2024
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.

5 participants