Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    jf1983
    @john-fletcher
    can someone give me the Job DSL script on generate freestyle job with allure plugin for reports
    Raddadi Mehdi
    @eclar
    hello, do you know where I could find an example of using the job dsl to get the projects from a github organization and create the multibranches pipelines ? :)
    Gordon Franke
    @gimler

    @eclar actually i have this

          organizationFolder('d060631') {
              description('Personal repository for Gordon Franke (d060631)')
              displayName('Gordon Franke')
              triggers {
                  periodic(2400)
              }
              organizations {
                  github {
                      repoOwner("badman")
                      apiUri("https://api.github.com")
                      credentialsId('github')
                      traits {
                          headWildcardFilter {
                              includes("jenkins-pipeline")
                              excludes("")
                          }
                      }
                  }
              }
              projectFactories {
                  workflowMultiBranchProjectFactory {
                      scriptPath("Jenkinsfile")
                  }
              }
          }

    now i hang on the behaviours i found thie following
    https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/demos/jobs/bitbucket.yaml#L41

    sathya1104
    @sathya1104

    Hello team,
    ignoreCommitterStrategy (part of git plugin) doesn't pick ignoredAuthors from multibranch generator job (i.e, job-dsl way).

    Below is the code which I tried inside my seed job
    buildStrategies {
    ignoreCommitterStrategy {
    ignoredAuthors("sathya@xyz.com")
    allowBuildIfNotExcludedAuthor(false)
    }
    }

    Note: Had even tried with "au.com.versent.jenkins.plugins.ignoreCommitterStrategy"

    After running seed job (i.e., multibranch generator job) I could see ignoreCommiter Strategy reflecting in existing multibranch pipeline jobs but still ignoredAuthor is not added. It means at this moment inside multibranch pipeline jobs -> config I have to manually click on Add button and add ignored author list manually which is bit painful as we have many jobs.

    Any help on this is really appreciated.