CodeDeploy DownloadBundle : Zip end of central directory signature not found CodeDeploy DownloadBundle : Zip end of central directory signature not found jenkins jenkins

CodeDeploy DownloadBundle : Zip end of central directory signature not found


Currently we are using Jenkins codedeploy plugin to do this job. Jenkins Code deploythough there was an issue -file-exists-behavior. hence we have fixed and given pullrequest . If you want Added fileExistsBehavior --file-exists-behavior support then build the plugin.

the pipleline typically looks like below

step([$class: 'AWSCodeDeployPublisher', applicationName: 'App.Web', awsAccessKey: 'ERAKIAI-aws-access-key', awsSecretKey: '73I28EY7vFx-aws-secret-key', credentials: 'awsAccessKey', deploymentConfig: 'CodeDeployDefault.OneAtATime', deploymentGroupAppspec: false, deploymentGroupName: 'Development', excludes: '',fileExistsBehavior: 'OVERWRITE', iamRoleArn: 'arn:aws:iam::724978192355:role/codedeploy-jenkins', includes: '**', proxyHost: '', proxyPort: 0, region: 'us-west-2', s3bucket: 'app-artifacts', s3prefix: 'app-artifacts-codedeploy', subdirectory: 'scripts/in-appspec', versionFileName: '', waitForCompletion: true])

In the above pipeline scripts subdirectory: 'scripts/in-appspec' is the codedeploy workspace. In which you will have all your appspec.yml and shell scripts are placed.

for exampleenter image description here . The jenkins codedeploy automatically zip and upload it into s3 and then trigger the codedeploy.

If you want to add codedeploy to the jenkins freestyle job then add Post-build Actions Deploy an application to AWS CodeDeployenter image description here