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

Scriptler Script's parameter not created with Job DSL

XMLWordPrintable

      After 2.6.0 of active-choices-plugin`, the plugin use scriptlerBuilder, and so I added `DataBoundConstructor` on ScriptlerBuilder (https://github.com/jenkinsci/scriptler-plugin/pull/80).

      But when I run this job dsl script,

      scriptlerScript {
          scriptlerBuilder {
              builderId('org.jenkinsci.plugins.scriptler.builder.ScriptlerBuilder')
              scriptId('TestImageTags.groovy')
              propagateParams(true)
              parameters {
                  parameter {
                      name 'PROJECT_NAME'
                      value '$PROJECT_NAME'
                  }
                  parameter {
                      name 'CLOUD_HOST_TYPE'
                      value '$CLOUD_HOST_TYPE'
                  }
                  parameter {
                      name 'PROFILE'
                      value '$TEST_PROFILE'
                  }
              }
          }
          isSandboxed(false)
      }
      

      there is no parameters in new jobs.


       

        1. Cascade.groovy
          0.1 kB
          Junyeong Yim (임준영)
        2. image-2023-10-01-22-27-41-204.png
          25 kB
          Junyeong Yim (임준영)
        3. image-2023-11-01-21-24-36-663.png
          75 kB
          Junyeong Yim (임준영)
        4. image-2023-11-01-21-28-19-103.png
          44 kB
          Junyeong Yim (임준영)
        5. image-2023-11-01-21-29-58-695.png
          28 kB
          Junyeong Yim (임준영)
        6. image-2023-11-01-21-36-41-275.png
          42 kB
          Junyeong Yim (임준영)
        7. scriptler_test.groovy
          2 kB
          Junyeong Yim (임준영)

            juny Junyeong Yim (임준영)
            juny Junyeong Yim (임준영)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: