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

Fixed a version change of vsts-task-lib breaking calls to tl.cp() #2528

Merged
merged 1 commit into from Sep 15, 2016

Conversation

HSAR
Copy link
Contributor

@HSAR HSAR commented Sep 15, 2016

No description provided.

Copy link
Member

@mjcheetham mjcheetham left a comment

Choose a reason for hiding this comment

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

LGTM

@HSAR HSAR merged commit ac9c900 into master Sep 15, 2016
@@ -44,7 +44,7 @@ export class CodeAnalysisResultPublisher {
let reportName = path.basename(resultFile, extension);

let artifactName = `${prefix}_${reportName}_${analysisResult.toolName}${extension}`;
tl.cp('-f', resultFile, path.join(destinationDir, artifactName));
tl.cp(resultFile, path.join(destinationDir, artifactName), '-f');
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to use tl.cp instead of the underlying shell.cp ? Actually copying files means that we can test this (i.e. test that the destination folder contains the test 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.

In test, tl.mkdirP() doesn't do anything either and the two go hand-in-hand.

@bryanmacfarlane
Copy link
Contributor

curious - did the break happen when adopting a new version of the task lib? we made changes in minor versions on the way to 1.0 lib.

@HSAR
Copy link
Contributor Author

HSAR commented Sep 15, 2016

@bryanmacfarlane
The change in vsts-task-lib is here, going from 0.8.1 -> 0.8.2 which changed the order of arguments: microsoft/azure-pipelines-task-lib@f297c0c

This emerged in production when Maven and Gradle package.json files were changed to bump us from 0.7.4 -> 0.9.7:
4c6754c

@HSAR HSAR deleted the users/sschen/cpfix branch September 15, 2016 16:33
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.

None yet

4 participants