# Auto generated by ./tcwg/generate-yamlfiles.sh from tcwg-dev-build.yaml.in and tcwg-dev-build/tcwg-llvm_woa-build.def. Do not edit.
#BEGIN: tcwg/default.yaml.inc
# -*- mode: Yaml -*-

- property:
    name: default-properties
    properties:
      - authorization:
          anonymous:
            - job-read
            - job-extended-read
          everyone-flat:
            - job-build
            - job-cancel
      - build-discarder:
          days-to-keep: 20

- scm:
    name: jenkins-scripts
    scm:
      - git:
          url: https://gitlab.com/LinaroLtd/tcwg/jenkins-scripts.git
          refspec: +refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*
          branches:
            - $scripts_branch
          basedir: jenkins-scripts
          skip-tag: true
          reference-repo: /home/tcwg-buildslave/snapshots-ref/jenkins-scripts.git
          wipe-workspace: false
          clean:
            before: true
          prune: true

#END:   tcwg/default.yaml.inc

- job:
    name: tcwg-llvm_woa-build
    project-type: freestyle
    defaults: global
    properties:
      - default-properties
    parameters:
        - string:
            name: release
            default: 'main'
            description: 'Release build ID (13.0.0-rc1, 13.0.0) or git branch/sha1'
        - choice:
            name: build_type
            choices:
              - test
              - release
        - label:
            name: builder
            default: tcwg-surface
            description: 'Jenkins label to build on; determines host of the toolchain'
        - string:
            name: scripts_branch
            default: master
            description: 'Scripts revision to use'
    disabled: false
    concurrent: true
    display-name: 'TCWG AAA llvm windows Build'
    # Save bytes in limited 250-byte windows PATHs
    workspace: ws/tdb$EXECUTOR_NUMBER
    scm:
      - jenkins-scripts
    wrappers:
        - timeout:
            timeout: 1800
        - timestamps
        - build-name:
            name: '#$BUILD_NUMBER-$release/$builder'
        - workspace-cleanup
    builders:
      - batch: |
          jenkins-scripts\tcwg-llvm-release.bat %release% %build_type%
    publishers:
        - archive:
            artifacts: 'artifacts/**'
            latest-only: false
# checksum: d6faabd60cbaa8247e6b5cc324f60910
