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

JobDSL plugin doesn't reset customWorkspace setting

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • Jenkins ver. 1.597 installed on Windows 8.1 (local test) and Windows Server 2008 R2 (production)

      Use JobDSL plug in to create a job like this:

      job('testjob') {
          customWorkspace('c:\\')
      }
      

      Then delete customWorkspace and run JobDSL again:

      job('testjob') {
      }
      

      The setting in the job is still activated and points to "c:\".

          [JENKINS-26825] JobDSL plugin doesn't reset customWorkspace setting

          Rolf Geuenich created issue -
          Daniel Spilker made changes -
          Link New: This issue depends on JENKINS-21017 [ JENKINS-21017 ]
          Daniel Spilker made changes -
          Link New: This issue is related to JENKINS-30548 [ JENKINS-30548 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 160998 ] New: JNJira + In-Review [ 180537 ]
          Daniel Spilker made changes -
          Link New: This issue is duplicated by JENKINS-39917 [ JENKINS-39917 ]
          Daniel Spilker made changes -
          Description Original: Use JobDSL plug in to create a job like this:
          {code}
          job {
              name( 'testjob')
              customWorkspace( 'c:\\' )
          }
          {code}

          Then delete customWorkspace and run JobDSL again:
          {code}
          job {
              name( 'testjob')
          }
          {code}

          The setting in the job is still activated and points to "c:\".
          New: Use JobDSL plug in to create a job like this:
          {code}
          job('testjob') {
              customWorkspace('c:\\')
          }
          {code}

          Then delete customWorkspace and run JobDSL again:
          {code}
          job('testjob') {
          }
          {code}

          The setting in the job is still activated and points to "c:\".
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            daspilker Daniel Spilker
            kaltokri Rolf Geuenich
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: