Adding onos-verify freestyle job
Change-Id: Ic32b5375d6bf7f47e53127d9e83f9c7c8ad36e86
diff --git a/jjb/onos/onos-buck-gerrit-pipeline.yaml b/jjb/onos/onos-buck-gerrit-pipeline.yaml
index 204ff81..3afa8b2 100644
--- a/jjb/onos/onos-buck-gerrit-pipeline.yaml
+++ b/jjb/onos/onos-buck-gerrit-pipeline.yaml
@@ -1,6 +1,7 @@
# disabled until pipline is supported by LF
+# FIXME this job uses pipeline, which depends on jenkins-job-builder==2.0.0.0b2
----
+#---
# ONOS Buck Pipeline jobs
#- job:
diff --git a/jjb/onos/onos-verify.yaml b/jjb/onos/onos-verify.yaml
new file mode 100644
index 0000000..b96ba47
--- /dev/null
+++ b/jjb/onos/onos-verify.yaml
@@ -0,0 +1,113 @@
+---
+
+- job_boiler_plate: &job_boiler_plate
+ name: job-boiler-plate
+
+ project-type: freestyle
+ node: '{build-node}'
+
+ ######################
+ # Default parameters #
+ ######################
+
+ branch: master
+ submodule-recursive: true
+ git-url: '$GIT_URL/$GERRIT_PROJECT'
+
+ #####################
+ # Job Configuration #
+ #####################
+
+ properties:
+ - lf-infra-properties:
+ project: '{project}'
+ build-days-to-keep: '{build-days-to-keep}'
+ #- github:
+ # url: '{git-url}/{github-org}/{project}'
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ branch: '{branch}'
+ stream: '{stream}'
+ lftools-version: '{lftools-version}'
+
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: '{build-timeout}'
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+
+- verify_boiler_plate: &verify_boiler_plate
+ name: verify_boiler_plate
+
+ concurrent: true
+
+ scm:
+ - lf-infra-github-scm:
+ url: '{git-url}'
+ refspec: '$GERRIT_REFSPEC'
+ branch: '$GERRIT_BRANCH'
+ submodule-recursive: '{submodule-recursive}'
+ choosing-strategy: default
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+ triggers:
+ - gerrit:
+ #server-name: '{gerrit-server-name}'
+ server-name: 'ONOS Project Gerrit'
+ #trigger-on: '{obj:gerrit_verify_triggers}'
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: true
+ exclude-trivial-rebase: false
+ exclude-no-code-change: true
+ - draft-published-event
+ projects:
+ - project-compare-type: PLAIN
+ #project-pattern: '{project}'
+ project-pattern: 'onos'
+ branches:
+ - branch-compare-type: ANT
+ #branch-pattern: '**/{branch}'
+ branch-pattern: '**/master'
+ #file-paths: '{obj:gerrit_trigger_file_paths}'
+
+- job-template:
+ #default name is global
+ name: '{project-name}-{stream}-verify'
+
+ # Job template for Java verify jobs
+ #
+ # The purpose of this job templte is to run "maven clean install" for
+ # projects using this template.
+ #
+ # Required Variables:
+ # branch: git branch (eg. master)
+
+ <<: *job_boiler_plate
+ # yamllint disable-line rule:key-duplicates
+ <<: *verify_boiler_plate
+
+ builders:
+ #put shell scripts in file then make sure shell check is installed on verify vms
+ - shell: |
+ echo 'Hello World'
+ java -version
+ lsb_release -a
+ ping -c1 8.8.8.8
+
+
+- project:
+ name: onos
+ project-name: onos
+ project: onos
+
+ build-timeout: '1800'
+ build-node: 'ubuntu16.04-basebuild-8c-15g'
+
+ stream:
+ - 'master'
+
+ jobs:
+ - '{project-name}-{stream}-verify'