job('madcore.jenkins.dsl.seed.plugins') {
    customWorkspace('/opt/plugins')

    scm {
        git {
            remote {
                url('https://github.com/madcore-ai/plugins')
            }
            branch('master')
        }
    }

    steps {
        dsl {
          external('**/*.groovy')
          removeAction('DELETE')
        }
    }
}

job('madcore.jenkins.dsl.seed.plugins') {
    customWorkspace('/opt/plugins')

    parameters {
        stringParam('BRANCH', 'master', '')
    }
    scm {
        git {
            remote {
                url('https://github.com/madcore-ai/plugins')
            }
            branch(params.BRANCH)
        }
    }

    steps {
        dsl {
          external('**/*.groovy')
          removeAction('DELETE')
        }
    }
}

Add branch name as input for plugin dsl seed
Add branch name as input for plugin dsl seed
