summaryrefslogtreecommitdiffstats
path: root/src/plugins/cdp/cdp_all_api_h.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cdp/cdp_all_api_h.h')
-rw-r--r--src/plugins/cdp/cdp_all_api_h.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/plugins/cdp/cdp_all_api_h.h b/src/plugins/cdp/cdp_all_api_h.h
new file mode 100644
index 00000000000..cc0047e6399
--- /dev/null
+++ b/src/plugins/cdp/cdp_all_api_h.h
@@ -0,0 +1,19 @@
+
+/*
+ * cdp_all_api_h.h - cdp plug-in api #include file
+ *
+ * Copyright (c) 2011-2018 by Cisco and/or its affiliates
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* Include the generated file, see BUILT_SOURCES in Makefile.am */
+#include <cdp/cdp.api.h>
4'>174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
---
- project:
    name: ci-management-jobs
    jobs:
      - 'ci-management-verify-jjb'
      - 'ci-management-merge-jjb'
      - 'ci-management-verify-packer'
      - 'ci-management-merge-packer-{platforms}-{templates}'

    platforms:
      - centos
      - ubuntu-16.04

    templates:
      - basebuild

    project: ci-management
    branch: master

- job-template:
    name: ci-management-verify-jjb

    project-type: freestyle
    node: jjb
    concurrent: true

    build-discarder:
      daysToKeep: 30
      numToKeep: 10
      artifactDaysToKeep: -1
      artifactNumToKeep: 5

    parameters:
      - project-parameter:
          project: '{project}'

    scm:
      - gerrit-trigger-scm-recursive:
          credentials-id: 'jenkins-gerrit-credentials'
          refspec: '$GERRIT_REFSPEC'
          choosing-strategy: 'gerrit'
          submodule-recursive: true

    wrappers:
      - fdio-infra-wrappers:
          build-timeout: '{build-timeout}'

    triggers:
      - gerrit-trigger-patch-submitted:
          name: '{project}'
          branch: '{branch}'

    builders:
      - shell: |
          jenkins-jobs test --recursive -o job_output jjb/
      - ci-management-check-unicode

    publishers:
      - archive-artifacts:
          artifacts: 'job_output/*'

      - fdio-infra-shiplogs:
          maven-version: 'mvn33-new'

- job-template:
    name: 'ci-management-merge-jjb'

    project-type: freestyle
    node: jjb

    build-discarder:
      daysToKeep: 30
      numToKeep: 40
      artifactDaysToKeep: -1
      artifactNumToKeep: 5

    parameters:
      - project-parameter:
          project: '{project}'

    scm:
      - gerrit-trigger-scm-recursive:
          credentials-id: 'jenkins-gerrit-credentials'
          refspec: ''
          choosing-strategy: 'gerrit'
          submodule-recursive: true

    wrappers:
      - fdio-infra-wrappers:
          build-timeout: '{build-timeout}'

    triggers:
      - gerrit-trigger-patch-merged:
          name: '{project}'
          branch: '{branch}'

    builders:
      - shell: |
          pip freeze
          jenkins-jobs --version
          jenkins-jobs update --recursive --delete-old --workers 4 jjb/

    publishers:
      - fdio-infra-shiplogs:
          maven-version: 'mvn33-new'

- job-template:
    name: 'ci-management-verify-packer'
    project-type: freestyle
    node: ubuntu1604-basebuild-4c-4g
    concurrent: true

    properties:
      - fdio-infra-properties:
          build-days-to-keep: '{build-days-to-keep}'
          build-num-to-keep: '{build-num-to-keep}'

    parameters:
      - project-parameter:
          project: '{project}'
      - gerrit-parameter:
          branch: '{branch}'
      - gerrit-refspec-parameter:
          refspec: 'refs/heads/{branch}'

    scm:
      - gerrit-trigger-scm:
          credentials-id: 'jenkins-gerrit-credentials'
          refspec: '$GERRIT_REFSPEC'
          branches:
            - '$GERRIT_BRANCH'
          choosing-strategy: 'gerrit'
          submodule-recursive: true

    wrappers:
      - fdio-infra-wrappers:
          build-timeout: '{build-timeout}'
      - ssh-agent-credentials:
          users:
            - 'jenkins-gerrit-credentials'

    triggers:
      - timed: 'H H 1 * *'
      - gerrit:
          server-name: 'Primary'
          trigger-on:
            - patchset-created-event:
                exclude-drafts: 'true'
                exclude-trivial-rebase: 'false'
                exclude-no-code-change: 'false'
            - draft-published-event
            - comment-added-contains-event:
                comment-contains-value: 'recheck'
            - comment-added-contains-event:
                comment-contains-value: 'reverify'
          projects:
            - project-compare-type: 'ANT'
              project-pattern: 'ci-management'
              branches:
                - branch-compare-type: 'ANT'
                  branch-pattern: '**/master'
              file-paths:
                - compare-type: ANT
                  pattern: packer/**

    builders:
      - packer-validate:

    publishers:
      - archive:
          artifacts: 'packer/*.log'
          allow-empty: 'true'
          only-if-success: 'true'
      - fdio-infra-shiplogs:
          maven-version: 'mvn33-new'

- job-template:
    name: 'ci-management-merge-packer-{platforms}-{templates}'
    project-type: freestyle
    node: ubuntu1604-basebuild-4c-4g
    concurrent: true

    properties:
      - fdio-infra-properties:
          build-days-to-keep: '{build-days-to-keep}'
          build-num-to-keep: '{build-num-to-keep}'

    parameters:
      - project-parameter:
          project: '{project}'
      - gerrit-parameter:
          branch: '{branch}'
      - gerrit-refspec-parameter:
          refspec: 'refs/heads/{branch}'

    scm:
      - gerrit-trigger-scm:
          credentials-id: 'jenkins-gerrit-credentials'
          refspec: '$GERRIT_REFSPEC'
          branches:
            - '$GERRIT_BRANCH'
          choosing-strategy: 'default'
          submodule-recursive: true

    wrappers:
      - fdio-infra-wrappers:
          build-timeout: '{build-timeout}'
      - ssh-agent-credentials:
          users:
            - 'jenkins-gerrit-credentials'

    triggers:
      - timed: 'H H 1 * *'
      - gerrit:
          server-name: 'Primary'
          trigger-on:
            - change-merged-event
            - comment-added-contains-event:
                comment-contains-value: 'remerge'
          projects:
            - project-compare-type: 'ANT'
              project-pattern: 'ci-management'
              branches:
                - branch-compare-type: 'ANT'
                  branch-pattern: '**/master'
              file-paths:
                - compare-type: ANT
                  pattern: 'packer/vars/{platforms}.json'
                - compare-type: ANT
                  pattern: 'packer/templates/{templates}.json'
                - compare-type: ANT
                  pattern: 'packer/provision/{templates}.sh'
                - compare-type: ANT
                  pattern: 'packer/provision/system_reseal.sh'
                - compare-type: ANT
                  pattern: 'packer/provision/rh-user_data.sh'
                - compare-type: ANT
                  pattern: 'packer/provision/baseline.sh'

    builders:
      - packer-validate:
      - packer-build:
          platform: '{platforms}'
          template: '{templates}'

    publishers:
      - archive:
          artifacts: 'packer/*.log'
          allow-empty: 'true'
          only-if-success: 'true'
      - fdio-infra-shiplogs:
          maven-version: 'mvn33-new'