<commit_before>- defaults:
    name: 'global'
    timeout: '15m'
    jobdescription: 'Managed by Jenkins Job Builder, do not edit manually! Update via https://github.com/minishift/minishift-ci-jobs'
    git_organization: minishift
    github_user: budhrg
    wrappers:
        - ansicolor
        - workspace-cleanup
        - timestamps
        - credentials-binding:
            - text:
                credential-id: <PASSWORD>
                variable: GH_TOKEN

- trigger:
    name: githubprb
    triggers:
        - github-pull-request:
              admin-list:
                  - budhrg
                  - hferentschik
                  - LalatenduMohanty
                  - praveenkumar
                  - gbraad
                  - thatdocslady
                  - P<PASSWORD>p
              cron: '* * * * *'
              github-hooks: false
              permit-all: false
              trigger-phrase: '.*\[test\].*'
              allow-whitelist-orgs-as-admins: true
              status-context: 'ci.centos.org PR build'
- scm:
    name: git-scm
    scm:
      - git:
          url: '{git_url}'
          skip-tag: 'True'
          git-tool: ci-git
          refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
          branches:
              - '${{ghprbActualCommit}}'

- job-template:
    name: '{git_repo}'
    description: |
      {jobdescription}
    node: "{ci_project}"
    properties:
        - github:
            url: https://github.com/{git_organization}/{git_repo}/
    scm:
        - git:
            url: https://github.com/{git_organization}/{git_repo}.git
            shallow_clone: true
            branches:
                - master
    triggers:
        - github
    builders:
        - shell: |
            # testing out the cico client
            set +e
            export CICO_API_KEY=$(cat ~/duffy.key)
            read CICO_hostname CICO_ssid <<< $(cico node get -f value -c ip_address -c comment --retry-count 6)
            sshopts="-t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root"
            ssh_cmd="ssh $sshopts $CICO_hostname"
            env > jenkins-env
            $ssh_cmd yum -y install rsync
            rsync -e "ssh $sshopts" -Ha $(pwd)/ $CICO_hostname:payload
            $ssh_cmd -t "cd payload && {ci_cmd}"
            rtn_code=$?
            cico node done $CICO_ssid
            if [[ $rtn_code -eq 124 ]]; then
              echo "BUILD TIMEOUT";
            fi
            exit $rtn_code

- job-template:
    name: '{git_repo}-pr'
    description: |
        {jobdescription}
    node: '{ci_project}'
    concurrent: true
    properties:
        - github:
            url: https://github.com/{git_organization}/{git_repo}/
    scm:
        - git-scm:
            git_url: https://{github_user}@github.com/{git_organization}/{git_repo}.git
    triggers:
        - githubprb
    builders:
        - shell: |
              # testing out the cico client
              set +e
              export CICO_API_KEY=$(cat ~/duffy.key)
              read CICO_hostname CICO_ssid <<< $(cico node get -f value -c ip_address -c comment --retry-count 6)
              sshopts="-t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root"
              ssh_cmd="ssh $sshopts $CICO_hostname"
              env > jenkins-env
              $ssh_cmd yum -y install rsync
              git rebase origin/${{ghprbTargetBranch}} \
              && rsync -e "ssh $sshopts" -Ha $(pwd)/ $CICO_hostname:payload \
              && /usr/bin/timeout {timeout} $ssh_cmd -t "cd payload && {ci_cmd}"
              rtn_code=$?
              cico node done $CICO_ssid
              if [[ $rtn_code -eq 124 ]]; then
                 echo "BUILD TIMEOUT";
              fi
              exit $rtn_code

- job-template:
    name: '{git_repo}-docs'
    description: |
        {jobdescription}
    node: '{ci_project}'
    concurrent: true
    properties:
        - github:
            url: https://github.com/{git_organization}/{git_repo}/
    scm:
        - git:
            url: https://{github_user}@github.com/{git_organization}/{git_repo}.git
            git-tool: ci-git
            shallow_clone: false
            branches:
                - master
    builders:
        - shell: |
              # testing out the cico client
              set +e
              export CICO_API_KEY=$(cat ~/duffy.key)
              read CICO_hostname CICO_ssid <<< $(cico node get -f value -c ip_address -c comment --retry-count 6)
              sshopts="-t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root"
              ssh_cmd="ssh $sshopts $CICO_hostname"
              env > jenkins-env
              $ssh_cmd yum -y install rsync
              rsync -e "ssh $sshopts" -Ha $(pwd)/ $CICO_hostname:payload \
              && /usr/bin/timeout {timeout} $ssh_cmd -t "cd payload && {ci_cmd}"
              rtn_code=$?
              if [[ $rtn_code -eq 124 ]]; then
                 echo "BUILD TIMEOUT";
              fi
              cico node done $CICO_ssid
              exit $rtn_code

- project:
    name: minishift
    jobs:
      # Master builds
      - '{git_repo}':
          git_repo: minishift
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'
      - '{git_repo}':
          git_repo: minishift-centos-iso
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'
      - '{git_repo}':
          git_repo: minishift-b2d-iso
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'
      # PR builds
      - '{git_repo}-pr':
          git_repo: minishift
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'
      - '{git_repo}-pr':
          git_repo: minishift-centos-iso
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'<commit_msg>Issue #26 Updated retry count and handle error message properly (#27)<commit_after>- defaults:
    name: 'global'
    timeout: '15m'
    jobdescription: 'Managed by Jenkins Job Builder, do not edit manually! Update via https://github.com/minishift/minishift-ci-jobs'
    git_organization: minishift
    github_user: budhrg
    wrappers:
        - ansicolor
        - workspace-cleanup
        - timestamps
        - credentials-binding:
            - text:
                credential-id: <PASSWORD>
                variable: GH_TOKEN

- trigger:
    name: githubprb
    triggers:
        - github-pull-request:
              admin-list:
                  - budhrg
                  - hferentschik
                  - LalatenduMohanty
                  - praveenkumar
                  - gbraad
                  - thatdocslady
                  - Preeticp
              cron: '* * * * *'
              github-hooks: false
              permit-all: false
              trigger-phrase: '.*\[test\].*'
              allow-whitelist-orgs-as-admins: true
              status-context: 'ci.centos.org PR build'
- scm:
    name: git-scm
    scm:
      - git:
          url: '{git_url}'
          skip-tag: 'True'
          git-tool: ci-git
          refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
          branches:
              - '${{ghprbActualCommit}}'

- job-template:
    name: '{git_repo}'
    description: |
      {jobdescription}
    node: "{ci_project}"
    properties:
        - github:
            url: https://github.com/{git_organization}/{git_repo}/
    scm:
        - git:
            url: https://github.com/{git_organization}/{git_repo}.git
            shallow_clone: true
            branches:
                - master
    triggers:
        - github
    builders:
        - shell: |
            # testing out the cico client
            set +e
            export CICO_API_KEY=$(cat ~/duffy.key)
            read CICO_hostname CICO_ssid <<< $(cico node get -f value -c ip_address -c comment --retry-count 12)

            if [[ $CICO_hostname != "" ]]; then
              sshopts="-t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root"
              ssh_cmd="ssh $sshopts $CICO_hostname"
              env > jenkins-env
              $ssh_cmd yum -y install rsync
              rsync -e "ssh $sshopts" -Ha $(pwd)/ $CICO_hostname:payload
              $ssh_cmd -t "cd payload && {ci_cmd}"
              rtn_code=$?
              cico node done $CICO_ssid
              if [[ $rtn_code -eq 124 ]]; then
                echo "BUILD TIMEOUT";
              fi
              exit $rtn_code
            else
              echo "CICO: Unable to get Node.";
              exit 1
            fi

- job-template:
    name: '{git_repo}-pr'
    description: |
        {jobdescription}
    node: '{ci_project}'
    concurrent: true
    properties:
        - github:
            url: https://github.com/{git_organization}/{git_repo}/
    scm:
        - git-scm:
            git_url: https://{github_user}@github.com/{git_organization}/{git_repo}.git
    triggers:
        - githubprb
    builders:
        - shell: |
              # testing out the cico client
              set +e
              export CICO_API_KEY=$(cat ~/duffy.key)
              read CICO_hostname CICO_ssid <<< $(cico node get -f value -c ip_address -c comment --retry-count 12)

              if [[ $CICO_hostname != "" ]]; then
                sshopts="-t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root"
                ssh_cmd="ssh $sshopts $CICO_hostname"
                env > jenkins-env
                $ssh_cmd yum -y install rsync
                git rebase origin/${{ghprbTargetBranch}} \
                && rsync -e "ssh $sshopts" -Ha $(pwd)/ $CICO_hostname:payload \
                && /usr/bin/timeout {timeout} $ssh_cmd -t "cd payload && {ci_cmd}"
                rtn_code=$?
                cico node done $CICO_ssid
                if [[ $rtn_code -eq 124 ]]; then
                   echo "BUILD TIMEOUT";
                fi
                exit $rtn_code
              else
                echo "CICO: Unable to get Node.";
                exit 1
              fi

- job-template:
    name: '{git_repo}-docs'
    description: |
        {jobdescription}
    node: '{ci_project}'
    concurrent: true
    properties:
        - github:
            url: https://github.com/{git_organization}/{git_repo}/
    scm:
        - git:
            url: https://{github_user}@github.com/{git_organization}/{git_repo}.git
            git-tool: ci-git
            shallow_clone: false
            branches:
                - master
    builders:
        - shell: |
              # testing out the cico client
              set +e
              export CICO_API_KEY=$(cat ~/duffy.key)
              read CICO_hostname CICO_ssid <<< $(cico node get -f value -c ip_address -c comment --retry-count 12)

              if [[ $CICO_hostname != "" ]]; then
                sshopts="-t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root"
                ssh_cmd="ssh $sshopts $CICO_hostname"
                env > jenkins-env
                $ssh_cmd yum -y install rsync
                rsync -e "ssh $sshopts" -Ha $(pwd)/ $CICO_hostname:payload \
                && /usr/bin/timeout {timeout} $ssh_cmd -t "cd payload && {ci_cmd}"
                rtn_code=$?
                if [[ $rtn_code -eq 124 ]]; then
                   echo "BUILD TIMEOUT";
                fi
                cico node done $CICO_ssid
                exit $rtn_code
              else
                echo "CICO: Unable to get Node.";
                exit 1
              fi

- project:
    name: minishift
    jobs:
      # Master builds
      - '{git_repo}':
          git_repo: minishift
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'
      - '{git_repo}':
          git_repo: minishift-centos-iso
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'
      - '{git_repo}':
          git_repo: minishift-b2d-iso
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'
      # PR builds
      - '{git_repo}-pr':
          git_repo: minishift
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'
      - '{git_repo}-pr':
          git_repo: minishift-centos-iso
          ci_project: '{name}'
          ci_cmd: '/bin/bash centos_ci.sh'
          timeout: '30m'
{'fraction_non_alphanumeric': 0.11301561874249098, 'fraction_numerical': 0.004805766920304365, 'mean_word_length': 1.418829910887253, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 12, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '82203', 'n_tokens_mistral': 4053, 'n_tokens_neox': 3832, 'n_words': 878}