X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fdistribution%2Fdistribution-templates.yaml;h=45fda0b3218e3e9445a5490e8cea136b51214b83;hb=c4f5571795775e56ec9bef76c40247c4c34cd755;hp=b564431c69ea922b15b572dc9340fd397197709c;hpb=564ea6891db06cb85c10a008ea240056ce2610b0;p=releng%2Fbuilder.git diff --git a/jjb/integration/distribution/distribution-templates.yaml b/jjb/integration/distribution/distribution-templates.yaml index b564431c6..45fda0b32 100644 --- a/jjb/integration/distribution/distribution-templates.yaml +++ b/jjb/integration/distribution/distribution-templates.yaml @@ -4,15 +4,27 @@ - job-template: name: '{project-name}-distribution-check-{stream}' + + ###################### + # Default parameters # + ###################### + + java-version: openjdk8 + mvn-version: mvn35 + + ##################### + # Job Configuration # + ##################### + # Operation: This job template builds a patch, creates a distribution containing # the patch (making sure dependencies are specified), # and performs the distribution deploy test. disabled: false project-type: freestyle - node: '{build-node}' + node: 'centos7-builder-8c-8g' concurrent: true - jdk: '{jdk}' + jdk: '{java-version}' properties: - opendaylight-infra-properties: @@ -24,13 +36,15 @@ project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' - artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt' + artifacts: '{archive-artifacts}' + - integration-distribution-stream: + stream: '{stream}' - integration-distribution-git-url: git-url: '{git-url}' - distribution-karaf-version: karaf-version: '{karaf-version}' - maven-exec: - maven-version: mvn33 + maven-version: '{mvn-version}' scm: - integration-gerrit-scm: @@ -51,132 +65,49 @@ triggers: - gerrit-trigger-patch-submitted: - server: '{server-name}' + gerrit-server-name: '{gerrit-server-name}' project: '{project}' branch: '{branch}' files: '**' builders: - distribution-check-wipe + - inject: + properties-file: 'allowed_projects.txt' - distribution-check-build-project: pom: '$GERRIT_PROJECT/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' + mvn-version: '{mvn-version}' + # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT. - distribution-check-verify-groupid: gerrit-project: '$GERRIT_PROJECT' - distribution-check-download-deps: dist-pom: 'distribution/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' + mvn-version: '{mvn-version}' + # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT. - distribution-check-delete-snapshots - distribution-check-configure-remotes - - distribution-check-repeat-build: - dist-pom: 'distribution/pom.xml' - mvn-opts: '{opendaylight-infra-mvn-opts}' - - integration-upload-distribution: - dist-pom: distribution/pom.xml - - integration-distribution-check - - publishers: - - email-notification: - email-recipients: '{email-recipients}' - email-prefix: '[{project-name}]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: false - script-only-if-failed: false - mark-unstable-if-failed: true - - opendaylight-infra-shiplogs: - maven-version: 'mvn33' - -# Delete these when Karaf 4 becomes Carbon default. - -# TODO: Is there a way to de-duplicate with generic template parts? - -- job-template: - name: '{project-name}-distribution4-check-carbon' - disabled: false - - project-type: freestyle - node: '{build-node}' - concurrent: true - jdk: '{jdk}' - - properties: - - opendaylight-infra-properties: - build-days-to-keep: '{build-days-to-keep}' - - parameters: - - opendaylight-infra-parameters: - os-cloud: '{os-cloud}' - project: '{project}' - branch: 'stable/carbon' - refspec: 'refs/heads/stable/carbon' - artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt' - - integration-distribution-git-url: - git-url: '{git-url}' - - distribution-karaf-version: - karaf-version: karaf4 - - maven-exec: - maven-version: mvn33 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '$GERRIT_BRANCH' - - integration-distribution-scm: - branch: 'stable/carbon' - - wrappers: - - opendaylight-infra-wrappers: - # Distro-check jobs typically run within 10 - 30 minutes - # with 45 minutes being the occassional edge case. - # enforce a 60 minute limit to ensure stuck jobs get - # cleared up sooner. - # Double that as Karaf 3+4 may take longer. - build-timeout: '120' - - triggers: - - gerrit-trigger-patch-submitted: - server: '{server-name}' - project: '{project}' - branch: 'stable/carbon' - files: '**' - - builders: - - distribution-check-wipe - - distribution-check-build-project: + - distribution-check-repeat-project-build: pom: '$GERRIT_PROJECT/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' - - distribution-check-verify-groupid: - gerrit-project: '$GERRIT_PROJECT' - - distribution-check-download-deps: - dist-pom: 'distribution/pom.xml' - mvn-opts: '{opendaylight-infra-mvn-opts}' - - distribution-check-delete-snapshots - - distribution-check-configure-remotes - - distribution-check-repeat-build: + mvn-version: '{mvn-version}' + # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT. + - distribution-check-repeat-distro-build: dist-pom: 'distribution/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' + mvn-version: '{mvn-version}' + # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT. + - integration-set-variables + - distribution-check-warn-9191 + - distribution-check-warn-9192 - integration-upload-distribution: dist-pom: distribution/pom.xml - - integration-distribution-check + - distribution-check-bootup publishers: - email-notification: email-recipients: '{email-recipients}' email-prefix: '[{project-name}]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: false - script-only-if-failed: false - mark-unstable-if-failed: true - - opendaylight-infra-shiplogs: - maven-version: 'mvn33' + - integration-csit-archive-build + - lf-infra-publish