blob: d9143a707c29fc7390fa7a3780ba4e248dd9acfc [file] [log] [blame]
robert.tomczyke53f0092019-06-05 12:03:09 +01001- job-template:
2 name: 'onap-{project-name}-{stream}-verify-java'
robert.tomczyk19d1ad12020-03-23 16:35:32 +00003 disabled_job_var: false
4 jdk-version: jdk8
robert.tomczyke53f0092019-06-05 12:03:09 +01005
robert.tomczyk19d1ad12020-03-23 16:35:32 +00006 disabled: '{obj:disabled_job_var}'
robert.tomczyke53f0092019-06-05 12:03:09 +01007 concurrent: true
robert.tomczyke53f0092019-06-05 12:03:09 +01008 properties:
9 - logrotate
10
11 parameters:
afenner49aae692019-08-16 14:50:42 +010012 - project-parameters:
13 project: 'onap/{project}'
14 branch: '{branch}'
robert.tomczyke53f0092019-06-05 12:03:09 +010015 - nordix-gerrit-parameters
Fatih Degirmenci9a677fe2019-08-22 06:27:41 +000016 - label:
17 name: SLAVE_LABEL
18 default: 'onap-build-ubuntu1604-{jdk-version}'
19 description: 'Slave label to schedule this job on'
robert.tomczyke53f0092019-06-05 12:03:09 +010020 - string:
21 name: JAVA_HOME
Fatih Degirmenci9a677fe2019-08-22 06:27:41 +000022 default: /usr/lib/jvm/openjdk-amd64
robert.tomczyke53f0092019-06-05 12:03:09 +010023 description: Java home
24 - string:
25 name: MVN_VERSION
robert.tomczyk2fe1e562020-01-16 10:53:40 +000026 default: 3.5.4
robert.tomczyke53f0092019-06-05 12:03:09 +010027 description: Maven version
28 - string:
29 name: MVN_URL
30 default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
31 description: URL to download Maven
32 - string:
33 name: MVN
34 default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
35 description: Path to mvn executable
afenner5433dc42019-08-16 14:03:19 +010036
robert.tomczyke53f0092019-06-05 12:03:09 +010037 scm:
38 - git-scm-gerrit:
39 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
40 branch: '{branch}'
41 refspec: $GERRIT_REFSPEC
robert.tomczyk7e507872019-06-18 17:20:26 +010042 wipe_workspace: true
43 clean_before: false
robert.tomczyke53f0092019-06-05 12:03:09 +010044
45 triggers:
46 - nordix-gerrit-trigger-patchset-created:
47 project: 'onap/{project}'
48 branch: '{branch}'
49 files: '**'
50
51 wrappers:
52 - build-timeout:
53 timeout: 45
54
55 builders:
56 - shell:
57 !include-raw-escape: ../global/verify-jobs.sh