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

AppVeyor server, use CAKE uploading artifact failed #688

Open
mikefoxnobel opened this issue Nov 26, 2019 · 2 comments
Open

AppVeyor server, use CAKE uploading artifact failed #688

mikefoxnobel opened this issue Nov 26, 2019 · 2 comments

Comments

@mikefoxnobel
Copy link

mikefoxnobel commented Nov 26, 2019

I'm trying to move project's CI from AppVeyor website to local AppVeyor Server.
The existing project is using "cake" script, which is successful running on AppVeyor website.
But after I set local AppVeyor Server, it build successful but uploading artifact failed.

Error message is:

========================================
Publish
========================================
Error uploading artifact to the storage: One or more errors occurred. (Artifact not found or access denied.)
An error occurred when executing task 'Publish'.
An error occurred when executing task 'Auto'.
Error: One or more errors occurred.
	UploadArtifact failed (2).
Command exited with code 1
Build failed

The cake code which cause exception:

var publishTask = Task("Publish")
	.IsDependentOn(packageTask)
	.WithCriteria(AppVeyor.IsRunningOnAppVeyor)
	.WithCriteria(!isAppVeyorPullRequest)
	.Does(() => 
{
    AppVeyor.UploadArtifact(zipFilename);
});

AppVeyor server installer file is: appveyor-server-7.0.2546-win-x64.msi.

Did I miss some setting?

@FeodorFitsner
Copy link
Member

Can you push artifact without Cake, e.g. with artifacts section in appveyor.yml or via appveyor PushArtifact <file> command?

@mikefoxnobel
Copy link
Author

The artifact file name is generated in Cake, with version number and SHA. It's hard to process in appveyor.yml.

And, where to run appveyor PushArtifact command?

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

No branches or pull requests

2 participants