blob: dd9952ff4c548b8bb1a000972ff649244aeb160a [file] [log] [blame]
- job-template:
name: 'onap-{project-name}-{stream}-verify-java'
disabled_job_var: false
node: onap-ubuntu1804
disabled: '{obj:disabled_job_var}'
concurrent: true
mvn_settings_xml_version:
mvn_params:
mvn_version: 3.6.3
subdirectory:
properties:
- logrotate
parameters:
- project-parameters:
project: 'onap/{project}'
branch: '{branch}'
- nordix-gerrit-parameters
- string:
name: JAVA_HOME
default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
description: Java home
- string:
name: MVN_VERSION
default: '{mvn_version}'
description: Maven version
- string:
name: MVN_URL
default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
description: URL to download Maven
- string:
name: MVN
default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
description: Path to mvn executable
- string:
name: MVN_SETTINGS_XML_VERSION
default: '{mvn_settings_xml_version}'
description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
- string:
name: MVN_PARAMS
default: '{mvn_params}'
description: Maven build parameters
- string:
name: SUBDIRECTORY
default: '{subdirectory}'
description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory
scm:
- git-scm-gerrit:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
wipe_workspace: true
clean_before: false
triggers:
- nordix-gerrit-trigger-patchset-created:
project: 'onap/{project}'
branch: '{branch}'
files: '**'
wrappers:
- build-timeout:
timeout: 45
builders:
- shell:
!include-raw-escape: ./verify-jobs.sh
# A job to perform CSIT on policy components
- job-template:
name: 'onap-{project-name}-{stream}-policy-csit-verify-java'
disabled_job_var: false
node: onap-ubuntu1804
disabled: '{obj:disabled_job_var}'
concurrent: true
mvn_settings_xml_version:
mvn_params:
mvn_version: 3.6.3
subdirectory:
properties:
- logrotate
parameters:
- project-parameters:
project: 'onap/{project}'
branch: '{branch}'
- nordix-gerrit-parameters
- string:
name: JAVA_HOME
default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
description: Java home
- string:
name: MVN_VERSION
default: '{mvn_version}'
description: Maven version
- string:
name: MVN_URL
default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
description: URL to download Maven
- string:
name: MVN
default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
description: Path to mvn executable
- string:
name: MVN_SETTINGS_XML_VERSION
default: '{mvn_settings_xml_version}'
description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
- string:
name: MVN_PARAMS
default: '{mvn_params}'
description: Maven build parameters
- string:
name: CSIT_NAME
default: '{csit-name}'
description: The name of the csit-test to run
- string:
name: SUBDIRECTORY
default: '{subdirectory}'
description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory
scm:
- git-scm-gerrit:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
wipe_workspace: true
clean_before: false
triggers:
- nordix-gerrit-trigger-patchset-created:
project: 'onap/{project}'
branch: '{branch}'
files: '**'
wrappers:
- build-timeout:
timeout: 45
builders:
- shell:
!include-raw-escape: ./verify-jobs.sh
- shell:
!include-raw-escape: ./verify-policy-csit.sh
# A job to plot the result of cps performance test
- job-template:
name: 'onap-{project-name}-performance-tests-plots'
disabled_job_var: false
node: xerces-cps-hw
wipe_workspace: false
triggers:
- timed: '{timer}'
builders:
- shell:
!include-raw-escape: ./cps/prepare-performance-tests-data.sh
publishers:
- html-publisher:
name: "Performance Review"
dir: "."
files: "cpsStableTestsPerformanceReview.html,ncmpStableTestsPerformanceReview.html,cpsUnstableTestsPerformanceReview.html,ncmpUnstableTestsPerformanceReview.html"
# A job to trigger performance test which are based on K6 Framework on cps project
- job-template:
name: 'onap-{project-name}-performance-test-k6'
disabled_job_var: false
node: xerces-cps-hw
wipe_workspace: false
triggers:
- timed: '{timer}'
builders:
- shell:
!include-raw-escape: ./cps/k6-performance-tests-trigger.sh
# A job to plot the result of k6 cps performance test
- job-template:
name: 'onap-{project-name}-k6-performance-tests-plots'
disabled_job_var: false
node: xerces-cps-hw
wipe_workspace: false
triggers:
- timed: '{timer}'
builders:
- shell:
!include-raw-escape: ./cps/prepare-k6-performance-tests-plots.sh
publishers:
- html-publisher:
name: "K6 Performance Review"
dir: "."
files: "k6TestsPerformanceReview.html,k6TestsPerformanceReviewMonthly.html"
# A job to run endurance test on cps project
- job-template:
name: 'onap-{project-name}-endurance-test'
disabled_job_var: false
node: xerces-cps-hw
wipe_workspace: false
triggers:
- timed: '{timer}'
builders:
- shell:
!include-raw-escape: ./cps/endurance-test-trigger.sh
# A job to perform performance test which are based on Spock-Groovy Framework on cps project
- job-template:
name: 'onap-{project-name}-{stream}-performance-test-java'
disabled_job_var: false
node: xerces-cps-hw
disabled: '{obj:disabled_job_var}'
concurrent: true
mvn_settings_xml_version:
mvn_params:
mvn_version: 3.6.3
subdirectory:
properties:
- logrotate
parameters:
- project-parameters:
project: 'onap/{project}'
branch: '{branch}'
- nordix-gerrit-parameters
- string:
name: JAVA_HOME
default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
description: Java home
- string:
name: MVN_VERSION
default: '{mvn_version}'
description: Maven version
- string:
name: MVN_URL
default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
description: URL to download Maven
- string:
name: MVN
default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
description: Path to mvn executable
- string:
name: MVN_SETTINGS_XML_VERSION
default: '{mvn_settings_xml_version}'
description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
- string:
name: MVN_PARAMS
default: '{mvn_params}'
description: Maven build parameters
- string:
name: SUBDIRECTORY
default: '{subdirectory}'
description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory
scm:
- git-scm:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: ''
wipe_workspace: true
clean_before: false
triggers:
- timed: '{timer}'
- gerrit:
server-name: 'Nordix Gerrit'
trigger-on:
- comment-added-contains-event:
comment-contains-value: 'performance-test'
projects:
- project-compare-type: 'ANT'
project-pattern: 'onap/{project}'
branches:
- branch-compare-type: 'ANT'
branch-pattern: '**/{branch}'
file-paths:
- compare-type: 'ANT'
pattern: '**'
wrappers:
- build-timeout:
timeout: 45
builders:
- shell:
!include-raw-escape: ./verify-jobs.sh
# csits for diferent projects are different so need to have special handling
- job-template:
name: 'onap-policy-docker-{stream}-csit-java'
disabled_job_var: false
node: onap-ubuntu1804
disabled: '{obj:disabled_job_var}'
concurrent: true
properties:
- logrotate
parameters:
- project-parameters:
project: 'onap/{project}'
branch: '{branch}'
- nordix-gerrit-parameters
- string:
name: JAVA_HOME
default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
description: Java home
- string:
name: CSIT_TEST_NAMES
default: '{csit_test_names}'
description: The name of the csits test to run
scm:
- git-scm-gerrit:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: 'master'
refspec: $GERRIT_REFSPEC
wipe_workspace: true
clean_before: false
triggers:
- nordix-gerrit-trigger-patchset-created:
project: 'onap/{project}'
branch: '{branch}'
files: '**'
wrappers:
- build-timeout:
timeout: 45
builders:
- 'wait-pkg-mgr-macro'
- shell:
!include-raw-escape: ./policy-docker-csit-jobs.sh