• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • cloudformation-plugin
    • None
    • Jenkins: LTS 1.609.3
      jenkins-cloudformation-plugin: 1.0

      Creating the stack works pretty good. But if I run the same jenkins job to update the stack then I am getting the following error:

      Determining to create or update Cloud Formation stack: TestStack
      Creating Cloud Formation stack: TestStack
      Failed to create stack: TestStack. Reason: Detailed Message: Stack [TestStack] already exists (Service: AmazonCloudFormation; Status Code: 400; Error Code: AlreadyExistsException; Request ID: e4846972-6c29-11e5-b8af-5debbbae47c0)
      Status Code: 400
      Error Code: AlreadyExistsException

      Build step 'AWS Cloud Formation' marked build as failure

          [JENKINS-30819] AWS Cloudformation stack update not working

          will soula added a comment -

          It is a fairly simple change to get this working. The issue was that the variable used to check if the stack exists was not scoped correctly. I have a fix here: https://github.com/jenkinsci/jenkins-cloudformation-plugin/pull/18

          will soula added a comment - It is a fairly simple change to get this working. The issue was that the variable used to check if the stack exists was not scoped correctly. I have a fix here: https://github.com/jenkinsci/jenkins-cloudformation-plugin/pull/18

          lsb want added a comment -

          I got this problem too

          lsb want added a comment - I got this problem too

          Code changed in jenkins
          User: Nathan A. Good
          Path:
          src/main/java/com/syncapse/jenkinsci/plugins/awscloudformationwrapper/CloudFormation.java
          http://jenkins-ci.org/commit/jenkins-cloudformation-plugin/eeb2c14cab5a7ff882a9737c8ed6d1a1a31558e9
          Log:
          Merge pull request #18 from wsoula/fix-update

          JENKINS-30819: Fix plugin to be able to update an existing stack

          Compare: https://github.com/jenkinsci/jenkins-cloudformation-plugin/compare/f6466a488b9d...eeb2c14cab5a

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nathan A. Good Path: src/main/java/com/syncapse/jenkinsci/plugins/awscloudformationwrapper/CloudFormation.java http://jenkins-ci.org/commit/jenkins-cloudformation-plugin/eeb2c14cab5a7ff882a9737c8ed6d1a1a31558e9 Log: Merge pull request #18 from wsoula/fix-update JENKINS-30819 : Fix plugin to be able to update an existing stack Compare: https://github.com/jenkinsci/jenkins-cloudformation-plugin/compare/f6466a488b9d...eeb2c14cab5a

            edovale edovale
            dennish Dennis Hampe
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: