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

Publish artifacts syntax #1431

Closed
wants to merge 1 commit into from
Closed

Conversation

ericsciple
Copy link
Contributor

No description provided.

echo world > layoutDir/world.txt

- publishArtifact: layout
sourceFolder: layoutDir # or $(system.defaultWorkingDirectory)/layoutDir
Copy link
Contributor

Choose a reason for hiding this comment

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

how about path instead of sourceFolder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops I originally meant to put sourcePath.

I don't mind changing this to simply path. My thinking was to make way for targetPath for things like file share artifacts, or even the current server artifacts can use a user-specified path to put it under a specific folder. Multiple publish steps can be used today to contribute to a single artifact, if the subpaths are different.

@chrispat chrispat added the Design label Mar 6, 2018
echo hello > layoutDir/hello.txt
echo world > layoutDir/world.txt

- publishArtifact: layout
Copy link
Contributor Author

Choose a reason for hiding this comment

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

would publish be sufficient?

steps:
- script: echo hello > $(build.artifactStagingDirectory)/hello.txt

- publishArtifact: drop
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps don't require an artifact name and default to "drop" if not specified. That's what our designer templates do with the PublishBuildArtifacts task.

@jtpetty
Copy link
Contributor

jtpetty commented Oct 9, 2019

@vtbassmatt - Can you take a look at this one?

@vtbassmatt vtbassmatt closed this Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants