jenkins:
  systemMessage: "Jenkins configured automatically by Jenkins Configuration as Code plugin\n\n"
  numExecutors: 5
  scmCheckoutRetryCount: 2
  mode: NORMAL

  globalNodeProperties:
    - envVars:
        env:
          - key: FOO
            value: BAR

  authorizationStrategy:
    loggedInUsersCanDoAnything:
      allowAnonymousRead: false

  clouds:
    - docker:
        name: "docker"
        dockerApi:
          dockerHost:
            uri: "unix:///var/run/docker.sock"
        templates:
          - labelString: "docker-agent"
            dockerTemplateBase:
              image: "jenkins/slave"
              mounts:
                - "type=tmpfs,destination=/run"
                - "type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock"
                - "type=volume,src=hello,dst=/world"
              environmentsString: |
                hello=world
                foo=bar
            remoteFs: "/home/jenkins/agent"
            connector:
              attach:
                user: "jenkins"
            instanceCapStr: "10"

tool:
  git:
    installations:
      - name: git
        home: /usr/local/bin/git

##  If Jenkins <2.165 then you can comment out the below section:
##
##  https://github.com/jenkinsci/configuration-as-code-plugin/issues/754
##
##security:
##  remotingCLI:
##    enabled: false

unclassified:
  artifactorybuilder:
    useCredentialsPlugin: true
    jfrogInstances:
      - instanceId: artifactory
        platformUrl: http://acme.com/artifactory
        artifactoryUrl: http://acme.com/artifactory
        distributionUrl: http://acme.com/distribution
        resolverCredentialsConfig:
          username: artifactory_user
          password: "${ARTIFACTORY_PASSWORD}"

  globalLibraries:
    libraries:
      - name: "awesome-lib"
        retriever:
          modernSCM:
            scm:
              git:
                remote: "https://github.com/jenkins-infra/pipeline-library.git"

  location:
    adminAddress: you@example.com
    url: https://ci.example.com/

  mailer:
    replyToAddress: do-not-reply@acme.org
    smtpHost: smtp.acme.org
    smtpPort: 4441
