Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46561

Regression: Tags do not get passed to CloudFormation stack on cfnUpdate

    Details

    • Similar Issues:

      Description

      When passing tags to cfnUpdate, the tags to not get attached to the stack. This is a regression as this used to work in previous versions (Last validated July 18th).

        Attachments

          Activity

          Hide
          hoegertn Thorsten Hoeger added a comment -

          I cannot confirm this behavior.

          {
              "Stacks": [
                  {
                      "StackId": "arn:aws:cloudformation:eu-west-1:XXXXXXXXXXX:stack/test-stack/fc574b30-96f6-11e7-a1ac-50faeb59c0d2",
                      "Description": "Jenkins Pipeline test",
                      "Parameters": [
                          {
                              "ParameterValue": "Val1,Val2",
                              "ParameterKey": "Param2"
                          },
                          {
                              "ParameterValue": "foobar",
                              "ParameterKey": "Param1"
                          }
                      ],
                      "Tags": [
                          {
                              "Value": "foobar",
                              "Key": "endor:stack-name"
                          }
                      ],
                      "Outputs": [
                          {
                              "Description": "The name of the test bucket",
                              "OutputKey": "Bucket",
                              "OutputValue": "test-stack-testbucket-5ig03b9amyc1"
                          },
                          {
                              "OutputKey": "Param2",
                              "OutputValue": "Val1,Val2"
                          },
                          {
                              "OutputKey": "Param1",
                              "OutputValue": "foobar"
                          }
                      ],
                      "CreationTime": "2017-09-11T13:41:59.786Z",
                      "Capabilities": [
                          "CAPABILITY_IAM",
                          "CAPABILITY_NAMED_IAM"
                      ],
                      "StackName": "test-stack",
                      "NotificationARNs": [],
                      "StackStatus": "CREATE_COMPLETE",
                      "DisableRollback": false
                  }
              ]
          }
           

           

          Show
          hoegertn Thorsten Hoeger added a comment - I cannot confirm this behavior. { "Stacks": [ { "StackId": "arn:aws:cloudformation:eu-west-1:XXXXXXXXXXX:stack/test-stack/fc574b30-96f6-11e7-a1ac-50faeb59c0d2", "Description": "Jenkins Pipeline test", "Parameters": [ { "ParameterValue": "Val1,Val2", "ParameterKey": "Param2" }, { "ParameterValue": "foobar", "ParameterKey": "Param1" } ], "Tags": [ { "Value": "foobar", "Key": "endor:stack-name" } ], "Outputs": [ { "Description": "The name of the test bucket", "OutputKey": "Bucket", "OutputValue": "test-stack-testbucket-5ig03b9amyc1" }, { "OutputKey": "Param2", "OutputValue": "Val1,Val2" }, { "OutputKey": "Param1", "OutputValue": "foobar" } ], "CreationTime": "2017-09-11T13:41:59.786Z", "Capabilities": [ "CAPABILITY_IAM", "CAPABILITY_NAMED_IAM" ], "StackName": "test-stack", "NotificationARNs": [], "StackStatus": "CREATE_COMPLETE", "DisableRollback": false } ] }    
          Hide
          omervk Omer van Kloeten added a comment -

          Sure, here is how I create my stacks:

          cfnUpdate(stack: $params.STACK_NAME, url: "https://s3.amazonaws.com/...", params: [ 'a=b', 'c=d', 'e=f' ], tags: [ "endor:stack-name=$params.STACK_NAME" ])

          Everything works fine, except for the tag not being added to the new stack.

          The first stack I can see I created that didn't have the tag was created 2017-08-06 (I try to keep my Jenkins server up to date with the latest versions of plugins as much as I can).

          Show
          omervk Omer van Kloeten added a comment - Sure, here is how I create my stacks: cfnUpdate(stack: $params.STACK_NAME, url: "https://s3.amazonaws.com/...", params: [ 'a=b', 'c=d', 'e=f' ], tags: [ "endor:stack-name=$params.STACK_NAME" ]) Everything works fine, except for the tag not being added to the new stack. The first stack I can see I created that didn't have the tag was created 2017-08-06 (I try to keep my Jenkins server up to date with the latest versions of plugins as much as I can).
          Hide
          hoegertn Thorsten Hoeger added a comment -

          Can you elaborate on your use case? I tried it and the tags were applied using the latest version.

          Show
          hoegertn Thorsten Hoeger added a comment - Can you elaborate on your use case? I tried it and the tags were applied using the latest version.

            People

            • Assignee:
              hoegertn Thorsten Hoeger
              Reporter:
              omervk Omer van Kloeten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: