X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Freleng-jobs.yaml;h=af725dabc9dc26a3f15beee5dfe007ff09c41739;hb=67a4de8f444ef11f8f361895f87bdb76809736f5;hp=35383ac61f91797e51b0b7230ba91e743d6f7ee1;hpb=2d3e74380fb19246900c32f4f6ea7f9b1852a132;p=releng%2Fbuilder.git diff --git a/jjb/releng-jobs.yaml b/jjb/releng-jobs.yaml index 35383ac61..af725dabc 100644 --- a/jjb/releng-jobs.yaml +++ b/jjb/releng-jobs.yaml @@ -7,42 +7,36 @@ - 'builder-weekly' - 'builder-check-poms' - # Maven Sites - - 'builder-site-publish' - - 'builder-site-verify' - project: 'releng/builder' - job-template: name: builder-verify-jjb + node: jjbuilder project-type: freestyle logrotate: - daysToKeep: 30 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 + daysToKeep: 7 parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' - - gerrit-parameter: branch: 'master' + refspec: 'refs/heads/master' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' refspec: '$GERRIT_REFSPEC' choosing-strategy: 'gerrit' wrappers: - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - gerrit: + server-name: 'OpenDaylight' trigger-on: - patchset-created-event: exclude-drafts: 'false' @@ -65,45 +59,49 @@ builders: - shell: | - source /opt/virtualenv/jenkins-job-builder/bin/activate - python scripts/jjb-autoupdate-project.py - jenkins-jobs test jjb/ + pip freeze + jenkins-jobs -l DEBUG test --recursive -o archives/job_output jjb/ + gzip archives/job_output/* + - releng-check-unicode publishers: - email-notification: email-prefix: '[releng]' + - archive-build: + maven-version: '{mvn33}' - job-template: name: builder-verify-python + node: centos7-java-builder-2c-8g project-type: freestyle logrotate: - daysToKeep: 30 + daysToKeep: 7 numToKeep: 10 artifactDaysToKeep: -1 artifactNumToKeep: -1 parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' - - gerrit-parameter: branch: 'master' + refspec: 'refs/heads/master' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' refspec: '$GERRIT_REFSPEC' choosing-strategy: 'gerrit' wrappers: - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - gerrit: + server-name: 'OpenDaylight' trigger-on: - patchset-created-event: exclude-drafts: 'false' @@ -125,14 +123,22 @@ builders: - shell: | + virtualenv $WORKSPACE/venv + source $WORKSPACE/venv/bin/activate + pip install --upgrade pip + pip freeze + pip install flake8 flake8 scripts/ publishers: - email-notification: email-prefix: '[releng]' + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'builder-merge' + node: jjbuilder # builder-merge job to run JJB update # @@ -141,30 +147,30 @@ project-type: freestyle logrotate: - daysToKeep: 30 - numToKeep: 40 + daysToKeep: 7 + numToKeep: 3 artifactDaysToKeep: -1 - artifactNumToKeep: 5 + artifactNumToKeep: -1 parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' - - gerrit-parameter: branch: 'master' + refspec: 'refs/heads/master' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' refspec: '' choosing-strategy: 'default' wrappers: - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - gerrit: + server-name: 'OpenDaylight' trigger-on: - change-merged-event - comment-added-contains-event: @@ -182,15 +188,21 @@ pattern: jjb-templates/** builders: - - shell: - !include-raw-escape include-raw-jjb-update.sh + - shell: | + pip freeze + jenkins-jobs --version + jenkins-jobs update --recursive --delete-old --workers 4 jjb/ publishers: - email-notification: email-prefix: '[releng]' + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'builder-weekly' + disabled: true + node: jjbuilder # builder-weekly job to run JJB update weekly # @@ -200,39 +212,42 @@ project-type: freestyle logrotate: - daysToKeep: 30 - numToKeep: 40 + daysToKeep: 7 + numToKeep: 3 artifactDaysToKeep: -1 - artifactNumToKeep: 5 + artifactNumToKeep: -1 parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: 'master' + refspec: 'refs/heads/master' + artifacts: '{archive-artifacts}' scm: - git-scm: - credentials-id: '{ssh-credentials}' branch: 'master' wrappers: - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - timed: 'H H * * 0' builders: - shell: | - source /opt/virtualenv/jenkins-job-builder/bin/activate - jenkins-jobs --flush-cache update jjb/ + jenkins-jobs --flush-cache update --recursive jjb/ publishers: - email-notification: email-prefix: '[releng]' + - archive-build: + maven-version: '{mvn33}' - job-template: name: builder-check-poms + node: centos7-java-builder-2c-8g project-type: freestyle @@ -242,137 +257,27 @@ artifactDaysToKeep: -1 artifactNumToKeep: -1 - wrappers: - - ssh-agent-credentials: - users: - - '{ssh-credentials}' - - triggers: - - timed: 'H H * * 1' - - builders: - - shell: - !include-raw-escape include-raw-check-poms.sh - - publishers: - - email-notification: - email-prefix: '[releng]' - - -### -### Maven Sites -### - -- job-template: - name: 'builder-site-publish' - node: dynamic_merge - concurrent: false - jdk: 'openjdk8' - - # This job's purpose is to publish maven site - - project-type: maven - - logrotate: - daysToKeep: 7 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' - - scm: - - git-scm: - credentials-id: '{ssh-credentials}' branch: 'master' + refspec: 'refs/heads/master' + artifacts: '{archive-artifacts}' wrappers: - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - - reverse: - jobs: 'builder-merge' - result: 'success' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'site:deploy -Dstream=master' - maven-opts: '-Xmx1024m' - settings: '{autorelease-settings}' - global-settings: '{odl-global-settings}' - - publishers: - - email-notification: - email-prefix: '[releng]' - -- job-template: - name: 'builder-site-verify' - node: dynamic_verify - concurrent: true - jdk: 'openjdk8' - - # This job's purpose is to verify maven site configuration - - project-type: maven - - logrotate: - daysToKeep: 7 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameter: - branch: 'master' - - scm: - - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' - refspec: '$GERRIT_REFSPEC' - choosing-strategy: 'gerrit' - - wrappers: - - ssh-agent-credentials: - users: - - '{ssh-credentials}' - - triggers: - - gerrit: - trigger-on: - - patchset-created-event: - exclude-drafts: 'false' - exclude-trivial-rebase: 'false' - exclude-no-code-change: 'false' - - draft-published-event - - comment-added-contains-event: - comment-contains-value: 'recheck' - projects: - - project-compare-type: 'ANT' - project-pattern: 'releng/builder' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/master' - file-paths: - - compare-type: ANT - pattern: src/** - - compare-type: ANT - pattern: pom.xml + - timed: 'H H * * 1' - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'site:site -Dstream=master' - maven-opts: '-Xmx1024m' - settings: '{autorelease-settings}' - global-settings: '{odl-global-settings}' + builders: + - shell: + !include-raw-escape: + - include-raw-check-poms.sh publishers: - email-notification: email-prefix: '[releng]' + - archive-build: + maven-version: '{mvn33}'