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

Trace.publish BuildArtifactWithName fails to publish TeamCity artifacts #2236

Closed
BillHally opened this issue Jan 14, 2019 · 0 comments · Fixed by #2240
Closed

Trace.publish BuildArtifactWithName fails to publish TeamCity artifacts #2236

BillHally opened this issue Jan 14, 2019 · 0 comments · Fixed by #2240

Comments

@BillHally
Copy link
Contributor

Description

Trace.publish when used with BuildArtifactWithName to publish artifacts to TeamCity, formats the TeamCity service message incorrectly, causing TeamCity to be unable to publish the artifact.

Repro steps

Use Trace.publish and BuildArtifactWithName on a TeamCity server. For example:

Trace.publish (ImportData.BuildArtifactWithName "Logs.zip") "log.txt"

Expected behavior

The specified file is published using the specified name.

Actual behavior

An error is printed to TeamCity's log, and the artifact is not published:

Collecting files to publish: [log.txt' => 'Logs.zip]
Artifacts path 'log.txt'' not found

(Note the trailing ' at the end of the artifact source file's name, and the leading one at the start of the artifact target file's name).

Known workarounds

Use ImportData.BuildArtifact instead of BuildArtifactWithName, and accept the inability to publish multiple files to a single zipped artifact etc.

Related information

  • Indications of severity - Minor

  • Version of FAKE (4.X, 5.X) - 5.12

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 a pull request may close this issue.

1 participant