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

Job doesn't find appspec file #74

Closed
delpinoconsulting opened this issue Oct 11, 2017 · 1 comment
Closed

Job doesn't find appspec file #74

delpinoconsulting opened this issue Oct 11, 2017 · 1 comment

Comments

@delpinoconsulting
Copy link

delpinoconsulting commented Oct 11, 2017

I'm trying to build and deploy on a Jenkins node, and as long as the appspec has no "Per Deployment" configuration, the job completes (i.e., regular appspec.yml)

If I choose the option of "Appspec.yml per Deployment Group", the job never completes with the following error:

Failed CodeDeploy post-build step; exception follows.
/appspec.staging.yml file does not exist
java.lang.IllegalArgumentException: /appspec.staging.yml file does not exist
	at com.amazonaws.codedeploy.AWSCodeDeployPublisher.zipAndUpload(AWSCodeDeployPublisher.java:349)
	at com.amazonaws.codedeploy.AWSCodeDeployPublisher.perform(AWSCodeDeployPublisher.java:230)
	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682)
	at hudson.model.Build$BuildExecution.post2(Build.java:186)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627)
	at hudson.model.Run.execute(Run.java:1749)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:419)
Build step 'Deploy an application to AWS CodeDeploy' marked build as failure
Finished: FAILURE

I've tried using a custom Workspace, and even copying the file to the remote FS root to no avail.

Any help on how to successfully build and deploy from a node would be greatly appreciated.

@Jmcfar
Copy link
Contributor

Jmcfar commented Dec 19, 2017

Merging this with #63 as they appear to be overlapping issues.

@Jmcfar Jmcfar closed this as completed Dec 19, 2017
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