Install lftools using the global-jjb scripts
[releng/builder.git] / jjb / releng-jobs.yaml
index ee76dcc62573a8f3cb9c8cfdffcd22f6c059e675..e139fc0749fc612b3c2dbdd2a1fc94c60bff4479 100644 (file)
@@ -2,10 +2,8 @@
 - project:
     name: builder-jobs
     jobs:
-      - 'builder-verify-jjb'
+      - '{project-name}-ci-jobs'
       - '{project-name}-verify-tox-{stream}'
-      - 'builder-merge'
-      - 'builder-weekly'
       - 'builder-check-poms'
       - 'builder-verify-packer'
       - 'builder-merge-packer-{platforms}-{templates}'
@@ -23,7 +21,6 @@
 
     templates:
       - devstack
-      - devstack-pre-pip-mitaka
       - devstack-pre-pip-newton
       - docker
       - gbp
@@ -43,8 +40,6 @@
         templates: java-builder
       - platforms: ubuntu-14.04
         templates: robot
-      - platforms: ubuntu-14.04
-        templates: devstack-pre-pip-mitaka
       - platforms: ubuntu-14.04
         templates: devstack-pre-pip-newton
       - platforms: ubuntu-14.04
@@ -57,8 +52,6 @@
         templates: java-builder
       - platforms: ubuntu-16.04
         templates: robot
-      - platforms: ubuntu-16.04
-        templates: devstack-pre-pip-mitaka
       - platforms: ubuntu-16.04
         templates: devstack-pre-pip-newton
       - platforms: ubuntu-16.04
     project-name: builder
     stream: master
     branch: master
+    build-node: centos7-java-builder-2c-4g
 
 - job-template:
-    name: builder-verify-jjb
-    node: centos7-java-builder-2c-4g
-    concurrent: true
-
-    project-type: freestyle
-
-    properties:
-      - opendaylight-infra-properties:
-          build-days-to-keep: 14
-
-    parameters:
-      - opendaylight-infra-parameters:
-          os-cloud: '{os-cloud}'
-          project: '{project}'
-          branch: '{branch}'
-          refspec: 'refs/heads/{branch}'
-          artifacts: '{archive-artifacts}'
-
-    scm:
-      - gerrit-trigger-scm:
-          refspec: '$GERRIT_REFSPEC'
-          choosing-strategy: 'gerrit'
-
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
-    triggers:
-      - gerrit-trigger-patch-submitted:
-          server: '{server-name}'
-          project: '{project}'
-          branch: '{branch}'
-          files: 'jjb/**'
-
-    builders:
-      - opendaylight-infra-jjbini
-      - shell: |
-          virtualenv $WORKSPACE/venv
-          source $WORKSPACE/venv/bin/activate
-          pip install --upgrade pip
-          pip install jenkins-job-builder
-          pip freeze
-          jenkins-jobs -l DEBUG test --recursive -o archives/job_output jjb/
-          gzip archives/job_output/*
-      - releng-check-unicode
-      - verify-gpg-signature
-
-    publishers:
-      - email-notification:
-          email-recipients: '{email-recipients}'
-          email-prefix: '[releng]'
-      - opendaylight-infra-shiplogs:
-          maven-version: 'mvn33'
-
-- job-template:
-    name: 'builder-merge'
+    name: builder-check-poms
     node: centos7-java-builder-2c-4g
 
-    # builder-merge job to run JJB update
-    #
-    # This job's purpose is to update all the JJB
-
     project-type: freestyle
 
     properties:
           refspec: 'refs/heads/{branch}'
           artifacts: '{archive-artifacts}'
 
-    scm:
-      - gerrit-trigger-scm:
-          refspec: ''
-          choosing-strategy: 'default'
-
     wrappers:
       - opendaylight-infra-wrappers:
           build-timeout: '{build-timeout}'
 
     triggers:
-      - gerrit:
-          server-name: '{server-name}'
-          trigger-on:
-            - change-merged-event
-            - comment-added-contains-event:
-                comment-contains-value: 'remerge'
-          projects:
-            - project-compare-type: 'ANT'
-              project-pattern: 'releng/builder'
-              branches:
-                - branch-compare-type: 'ANT'
-                  branch-pattern: '**/{branch}'
-              file-paths:
-                - compare-type: ANT
-                  pattern: jjb/**
+      - timed: 'H H * * 1'
 
     builders:
-      - opendaylight-infra-jjbini
-      - shell: |
-          virtualenv $WORKSPACE/venv
-          source $WORKSPACE/venv/bin/activate
-          pip install --upgrade pip
-          pip install jenkins-job-builder
-          pip freeze
-          jenkins-jobs --version
-          jenkins-jobs update --recursive --delete-old --workers 4 jjb/
+      - shell: !include-raw-escape: include-raw-check-poms.sh
 
     publishers:
       - email-notification:
           maven-version: 'mvn33'
 
 - job-template:
-    name: 'builder-weekly'
-    disabled: false
-    node: centos7-java-builder-2c-4g
-
-    # builder-weekly job to run JJB update weekly
-    #
-    # This job's purpose is to update all the JJB on a weekly (Sunday)
-    # basis with --flush-cache enabled to ensure jobs are okay
-
+    name: 'builder-delete-stale-stacks'
     project-type: freestyle
-
-    properties:
-      - opendaylight-infra-properties:
-          build-days-to-keep: 14
-
-    parameters:
-      - opendaylight-infra-parameters:
-          os-cloud: '{os-cloud}'
-          project: '{project}'
-          branch: '{branch}'
-          refspec: 'refs/heads/{branch}'
-          artifacts: '{archive-artifacts}'
-
-    scm:
-      - git-scm:
-          branch: '{branch}'
-
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
-    triggers:
-      - timed: 'H H * * 0'
-
-    builders:
-      - opendaylight-infra-jjbini
-      - shell: |
-          virtualenv $WORKSPACE/venv
-          source $WORKSPACE/venv/bin/activate
-          pip install --upgrade pip
-          pip install jenkins-job-builder
-          pip freeze
-          jenkins-jobs --flush-cache update --recursive --workers 4 jjb/
-
-    publishers:
-      - email-notification:
-          email-recipients: '{email-recipients}'
-          email-prefix: '[releng]'
-      - opendaylight-infra-shiplogs:
-          maven-version: 'mvn33'
-
-- job-template:
-    name: builder-check-poms
     node: centos7-java-builder-2c-4g
 
-    project-type: freestyle
-
     properties:
       - opendaylight-infra-properties:
-          build-days-to-keep: 14
+          build-days-to-keep: 7
 
     parameters:
       - opendaylight-infra-parameters:
       - opendaylight-infra-wrappers:
           build-timeout: '{build-timeout}'
 
-    triggers:
-      - timed: 'H H * * 1'
-
-    builders:
-      - shell: !include-raw-escape: include-raw-check-poms.sh
-
-    publishers:
-      - email-notification:
-          email-recipients: '{email-recipients}'
-          email-prefix: '[releng]'
-      - opendaylight-infra-shiplogs:
-          maven-version: 'mvn33'
-
-- job-template:
-    name: 'builder-delete-stale-stacks'
-    project-type: freestyle
-    node: centos7-java-builder-2c-4g
-
-    properties:
-      - opendaylight-infra-properties:
-          build-days-to-keep: 7
-
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     triggers:
       # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
       - timed: '0,30 * * * *'
       - timed: '@weekly'
 
     builders:
-      - shell: !include-raw-escape: opendaylight-infra-cleanup-old-images.sh
+      - shell: !include-raw-escape:
+          - global-jjb/shell/lftools-install.sh
+          - opendaylight-infra-cleanup-old-images.sh
 
     publishers:
       - email-notification:
 
     triggers:
       - reverse:
-          jobs: 'builder-merge'
+          jobs: 'builder-jjb-merge'
 
     builders:
       - shell: |
           git checkout -b auto-update-csit-jobs
+      - integration-list-jobs:
+          blacklist: '{csit-list-blacklist}'
+          search_string: "csit"
+          stream: "nitrogen"
+          jobs-filename: "csit_jobs_nitrogen.lst"
       - integration-list-jobs:
           blacklist: '{csit-list-blacklist}'
           search_string: "csit"
           search_string: "csit"
           stream: "beryllium"
           jobs-filename: "csit_jobs_beryllium.lst"
+      - integration-replace-block-text:
+          starting-regex: "'csit-list-nitrogen: >'"
+          ending-regex: "'csit-list-carbon: >'"
+          file-with-changes-to-insert: "'csit_jobs_nitrogen.lst'"
+          file-to-change: "'jjb/releng-defaults.yaml'"
       - integration-replace-block-text:
           starting-regex: "'csit-list-carbon: >'"
-          ending-regex: "'csit-weekly-list-carbon: >'"
+          ending-regex: "'csit-list-boron: >'"
           file-with-changes-to-insert: "'csit_jobs_carbon.lst'"
           file-to-change: "'jjb/releng-defaults.yaml'"
       - integration-replace-block-text: