Skip to content

Commit

Permalink
Merge pull request #70 from rewindio/main
Browse files Browse the repository at this point in the history
Do not error on existing environment for upload-only jobs
  • Loading branch information
Einar Egilsson authored Dec 1, 2021
2 parents af31173 + cc61afb commit 59ced88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beanstalk-deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ function main() {
if (versionAlreadyExists) {

if (!environmentName) {
console.error(`You have no environment set, so we are trying to only create version ${versionLabel}, but it already exists in Beanstalk!`);
process.exit(2);
console.log(`No environment set, but the version ${versionLabel} was found - exiting successfully with no change`);
process.exit(0);
} else if (file && !useExistingVersionIfAvailable) {
console.error(`Deployment failed: Version ${versionLabel} already exists. Either remove the "deployment_package" parameter to deploy existing version, or set the "use_existing_version_if_available" parameter to "true" to use existing version if it exists and deployment package if it doesn't.`);
process.exit(2);
Expand Down

0 comments on commit 59ced88

Please sign in to comment.