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

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

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • pipeline-aws-plugin
    • Jenkins ver. 2.60.3
      pipeline-aws-plugin 1.13

      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).

          [JENKINS-46561] Regression: Tags do not get passed to CloudFormation stack on cfnUpdate

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

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

          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).

          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).

          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
                  }
              ]
          }
           

           

          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 } ] }    

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

              Created:
              Updated:
              Resolved: