Skip to content

Subdirectory field not working / causes exception #28

@alertedsnake

Description

@alertedsnake

No matter what I put into the "subdirectory" field, I get this exception - even when I leave it blank.

Suggestions?

Failed CodeDeploy post-build step; exception follows.
Provided path is not a subdirectory of the workspace: /var/lib/jenkins-slave/workspace/TestApp-CodeDeploy-Test
java.lang.IllegalArgumentException: Provided path is not a subdirectory of the workspace: /var/lib/jenkins-slave/workspace/TestApp-CodeDeploy-Test
    at com.amazonaws.codedeploy.AWSCodeDeployPublisher.getSourceDirectory(AWSCodeDeployPublisher.java:242)
    at com.amazonaws.codedeploy.AWSCodeDeployPublisher.perform(AWSCodeDeployPublisher.java:215)
    at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
    at hudson.model.Build$BuildExecution.post2(Build.java:185)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
    at hudson.model.Run.execute(Run.java:1766)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)
Build step 'Deploy an application to AWS CodeDeploy' marked build as failure
Finished: FAILURE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions