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

Add editor ATH coverage for setting and changing environment variables

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Making changes to environment settings in a Jenkinsfile is an important feature available in the editor, but none of our existing tests cover this path. A simple ATH test (or even an addition to another, existing test) would be a nice coverage improvement.

      Ideas:
      An offline test could create a repository including an existing Jenkinsfile, stored in our resources directory, like we're doing here. This existing Jenkinsfile might include something like:

      environment {
          SOME_VARIABLE  = "old-boring-setting"
      }
      

      which we could then use the editor to change into

      environment {
          SOME_VARIABLE  = "new-awesome-setting"
          NEW_VARIABLE = "another-new-thing"
      }
      

      And then verify that the changes were made correctly.

        Attachments

          Activity

          Hide
          kshultz Karl Shultz added a comment -
          Show
          kshultz Karl Shultz added a comment - Merged 1716 .
          Hide
          kshultz Karl Shultz added a comment -
          Show
          kshultz Karl Shultz added a comment - PR up .

            People

            Assignee:
            kshultz Karl Shultz
            Reporter:
            kshultz Karl Shultz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: