From 2d371b271dd95913d46b1a2f179a71a69c548515 Mon Sep 17 00:00:00 2001 From: Aric Gardner Date: Wed, 18 Feb 2015 15:57:35 -0500 Subject: Inital commit for jenkins job builder Change-Id: I8c50158e55a6ddb46fd1f74dbc81e668402e089f Signed-off-by: Aric Gardner --- jjb/availability/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/availability/availability.cfg | 3 + jjb/availability/availability.yml | 66 ++++++++++ jjb/copper/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/copper/copper.cfg | 3 + jjb/copper/copper.yml | 66 ++++++++++ jjb/doctor/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/doctor/doctor.cfg | 3 + jjb/doctor/doctor.yml | 66 ++++++++++ jjb/fastpathmetrics/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/fastpathmetrics/fastpathmetrics.cfg | 3 + jjb/fastpathmetrics/fastpathmetrics.yml | 66 ++++++++++ jjb/functest/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/functest/functest.cfg | 3 + jjb/functest/functest.yml | 66 ++++++++++ jjb/genesis/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/genesis/genesis.cfg | 3 + jjb/genesis/genesis.yml | 66 ++++++++++ jjb/ipv6/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/ipv6/ipv6.cfg | 3 + jjb/ipv6/ipv6.yml | 66 ++++++++++ jjb/octopus/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/octopus/octopus.cfg | 3 + jjb/octopus/octopus.yml | 66 ++++++++++ jjb/parser/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/parser/parser.cfg | 3 + jjb/parser/parser.yml | 66 ++++++++++ jjb/pharos/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/pharos/pharos.cfg | 3 + jjb/pharos/pharos.yml | 66 ++++++++++ jjb/promise/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/promise/promise.cfg | 3 + jjb/promise/promise.yml | 66 ++++++++++ jjb/releng-defaults.yaml | 11 ++ jjb/releng-jobs.yaml | 110 ++++++++++++++++ jjb/releng-macros.yaml | 145 ++++++++++++++++++++++ jjb/script | 16 +++ jjb/vnf_forwarding_graph/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/vnf_forwarding_graph/vnf_forwarding_graph.cfg | 3 + jjb/vnf_forwarding_graph/vnf_forwarding_graph.yml | 66 ++++++++++ jjb/vswitchperf/.availability.yml.swp | Bin 0 -> 12288 bytes jjb/vswitchperf/vswitchperf.cfg | 3 + jjb/vswitchperf/vswitchperf.yml | 66 ++++++++++ 43 files changed, 1179 insertions(+) create mode 100644 jjb/availability/.availability.yml.swp create mode 100644 jjb/availability/availability.cfg create mode 100644 jjb/availability/availability.yml create mode 100644 jjb/copper/.availability.yml.swp create mode 100644 jjb/copper/copper.cfg create mode 100644 jjb/copper/copper.yml create mode 100644 jjb/doctor/.availability.yml.swp create mode 100644 jjb/doctor/doctor.cfg create mode 100644 jjb/doctor/doctor.yml create mode 100644 jjb/fastpathmetrics/.availability.yml.swp create mode 100644 jjb/fastpathmetrics/fastpathmetrics.cfg create mode 100644 jjb/fastpathmetrics/fastpathmetrics.yml create mode 100644 jjb/functest/.availability.yml.swp create mode 100644 jjb/functest/functest.cfg create mode 100644 jjb/functest/functest.yml create mode 100644 jjb/genesis/.availability.yml.swp create mode 100644 jjb/genesis/genesis.cfg create mode 100644 jjb/genesis/genesis.yml create mode 100644 jjb/ipv6/.availability.yml.swp create mode 100644 jjb/ipv6/ipv6.cfg create mode 100644 jjb/ipv6/ipv6.yml create mode 100644 jjb/octopus/.availability.yml.swp create mode 100644 jjb/octopus/octopus.cfg create mode 100644 jjb/octopus/octopus.yml create mode 100644 jjb/parser/.availability.yml.swp create mode 100644 jjb/parser/parser.cfg create mode 100644 jjb/parser/parser.yml create mode 100644 jjb/pharos/.availability.yml.swp create mode 100644 jjb/pharos/pharos.cfg create mode 100644 jjb/pharos/pharos.yml create mode 100644 jjb/promise/.availability.yml.swp create mode 100644 jjb/promise/promise.cfg create mode 100644 jjb/promise/promise.yml create mode 100644 jjb/releng-defaults.yaml create mode 100644 jjb/releng-jobs.yaml create mode 100644 jjb/releng-macros.yaml create mode 100644 jjb/script create mode 100644 jjb/vnf_forwarding_graph/.availability.yml.swp create mode 100644 jjb/vnf_forwarding_graph/vnf_forwarding_graph.cfg create mode 100644 jjb/vnf_forwarding_graph/vnf_forwarding_graph.yml create mode 100644 jjb/vswitchperf/.availability.yml.swp create mode 100644 jjb/vswitchperf/vswitchperf.cfg create mode 100644 jjb/vswitchperf/vswitchperf.yml (limited to 'jjb') diff --git a/jjb/availability/.availability.yml.swp b/jjb/availability/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/availability/.availability.yml.swp differ diff --git a/jjb/availability/availability.cfg b/jjb/availability/availability.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/availability/availability.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/availability/availability.yml b/jjb/availability/availability.yml new file mode 100644 index 000000000..101e45434 --- /dev/null +++ b/jjb/availability/availability.yml @@ -0,0 +1,66 @@ +- project: + name: availability + jobs: + - 'availability-test' + - 'availability-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'availability' + somevar: 'foo' + +- job-template: + name: availability-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from availability" + +- job-template: + name: 'availability-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from availability {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/copper/.availability.yml.swp b/jjb/copper/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/copper/.availability.yml.swp differ diff --git a/jjb/copper/copper.cfg b/jjb/copper/copper.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/copper/copper.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/copper/copper.yml b/jjb/copper/copper.yml new file mode 100644 index 000000000..022425f90 --- /dev/null +++ b/jjb/copper/copper.yml @@ -0,0 +1,66 @@ +- project: + name: copper + jobs: + - 'copper-test' + - 'copper-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'copper' + somevar: 'foo' + +- job-template: + name: copper-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from copper" + +- job-template: + name: 'copper-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from copper {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/doctor/.availability.yml.swp b/jjb/doctor/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/doctor/.availability.yml.swp differ diff --git a/jjb/doctor/doctor.cfg b/jjb/doctor/doctor.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/doctor/doctor.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/doctor/doctor.yml b/jjb/doctor/doctor.yml new file mode 100644 index 000000000..b0387deea --- /dev/null +++ b/jjb/doctor/doctor.yml @@ -0,0 +1,66 @@ +- project: + name: doctor + jobs: + - 'doctor-test' + - 'doctor-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'doctor' + somevar: 'foo' + +- job-template: + name: doctor-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from doctor" + +- job-template: + name: 'doctor-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from doctor {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/fastpathmetrics/.availability.yml.swp b/jjb/fastpathmetrics/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/fastpathmetrics/.availability.yml.swp differ diff --git a/jjb/fastpathmetrics/fastpathmetrics.cfg b/jjb/fastpathmetrics/fastpathmetrics.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/fastpathmetrics/fastpathmetrics.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/fastpathmetrics/fastpathmetrics.yml b/jjb/fastpathmetrics/fastpathmetrics.yml new file mode 100644 index 000000000..83eafa331 --- /dev/null +++ b/jjb/fastpathmetrics/fastpathmetrics.yml @@ -0,0 +1,66 @@ +- project: + name: fastpathmetrics + jobs: + - 'fastpathmetrics-test' + - 'fastpathmetrics-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'fastpathmetrics' + somevar: 'foo' + +- job-template: + name: fastpathmetrics-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from fastpathmetrics" + +- job-template: + name: 'fastpathmetrics-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from fastpathmetrics {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/functest/.availability.yml.swp b/jjb/functest/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/functest/.availability.yml.swp differ diff --git a/jjb/functest/functest.cfg b/jjb/functest/functest.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/functest/functest.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/functest/functest.yml b/jjb/functest/functest.yml new file mode 100644 index 000000000..7245260c2 --- /dev/null +++ b/jjb/functest/functest.yml @@ -0,0 +1,66 @@ +- project: + name: functest + jobs: + - 'functest-test' + - 'functest-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'functest' + somevar: 'foo' + +- job-template: + name: functest-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from functest" + +- job-template: + name: 'functest-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from functest {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/genesis/.availability.yml.swp b/jjb/genesis/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/genesis/.availability.yml.swp differ diff --git a/jjb/genesis/genesis.cfg b/jjb/genesis/genesis.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/genesis/genesis.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/genesis/genesis.yml b/jjb/genesis/genesis.yml new file mode 100644 index 000000000..b5ff9fa41 --- /dev/null +++ b/jjb/genesis/genesis.yml @@ -0,0 +1,66 @@ +- project: + name: genesis + jobs: + - 'genesis-test' + - 'genesis-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'genesis' + somevar: 'foo' + +- job-template: + name: genesis-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from genesis" + +- job-template: + name: 'genesis-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from genesis {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/ipv6/.availability.yml.swp b/jjb/ipv6/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/ipv6/.availability.yml.swp differ diff --git a/jjb/ipv6/ipv6.cfg b/jjb/ipv6/ipv6.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/ipv6/ipv6.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/ipv6/ipv6.yml b/jjb/ipv6/ipv6.yml new file mode 100644 index 000000000..0b5e6b2f2 --- /dev/null +++ b/jjb/ipv6/ipv6.yml @@ -0,0 +1,66 @@ +- project: + name: ipv6 + jobs: + - 'ipv6-test' + - 'ipv6-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'ipv6' + somevar: 'foo' + +- job-template: + name: ipv6-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from ipv6" + +- job-template: + name: 'ipv6-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from ipv6 {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/octopus/.availability.yml.swp b/jjb/octopus/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/octopus/.availability.yml.swp differ diff --git a/jjb/octopus/octopus.cfg b/jjb/octopus/octopus.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/octopus/octopus.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/octopus/octopus.yml b/jjb/octopus/octopus.yml new file mode 100644 index 000000000..125ba5a0c --- /dev/null +++ b/jjb/octopus/octopus.yml @@ -0,0 +1,66 @@ +- project: + name: octopus + jobs: + - 'octopus-test' + - 'octopus-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'octopus' + somevar: 'foo' + +- job-template: + name: octopus-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from octopus" + +- job-template: + name: 'octopus-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from octopus {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/parser/.availability.yml.swp b/jjb/parser/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/parser/.availability.yml.swp differ diff --git a/jjb/parser/parser.cfg b/jjb/parser/parser.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/parser/parser.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/parser/parser.yml b/jjb/parser/parser.yml new file mode 100644 index 000000000..3cbe53073 --- /dev/null +++ b/jjb/parser/parser.yml @@ -0,0 +1,66 @@ +- project: + name: parser + jobs: + - 'parser-test' + - 'parser-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'parser' + somevar: 'foo' + +- job-template: + name: parser-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from parser" + +- job-template: + name: 'parser-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from parser {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/pharos/.availability.yml.swp b/jjb/pharos/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/pharos/.availability.yml.swp differ diff --git a/jjb/pharos/pharos.cfg b/jjb/pharos/pharos.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/pharos/pharos.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/pharos/pharos.yml b/jjb/pharos/pharos.yml new file mode 100644 index 000000000..dbe57ad4d --- /dev/null +++ b/jjb/pharos/pharos.yml @@ -0,0 +1,66 @@ +- project: + name: pharos + jobs: + - 'pharos-test' + - 'pharos-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'pharos' + somevar: 'foo' + +- job-template: + name: pharos-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from pharos" + +- job-template: + name: 'pharos-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from pharos {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/promise/.availability.yml.swp b/jjb/promise/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/promise/.availability.yml.swp differ diff --git a/jjb/promise/promise.cfg b/jjb/promise/promise.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/promise/promise.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/promise/promise.yml b/jjb/promise/promise.yml new file mode 100644 index 000000000..07e26b19b --- /dev/null +++ b/jjb/promise/promise.yml @@ -0,0 +1,66 @@ +- project: + name: promise + jobs: + - 'promise-test' + - 'promise-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'promise' + somevar: 'foo' + +- job-template: + name: promise-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from promise" + +- job-template: + name: 'promise-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from promise {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/releng-defaults.yaml b/jjb/releng-defaults.yaml new file mode 100644 index 000000000..09114ec7d --- /dev/null +++ b/jjb/releng-defaults.yaml @@ -0,0 +1,11 @@ +# jjb defaults + +- defaults: + name: global + + build-days-to-keep: 30 + build-num-to-keep: 40 + build-artifact-days-to-keep: -1 + build-artifact-num-to-keep: 5 + + ssh-credentials: 'b241a488-1acc-4264-a010-2db3acb07fb0' diff --git a/jjb/releng-jobs.yaml b/jjb/releng-jobs.yaml new file mode 100644 index 000000000..fe8f50f76 --- /dev/null +++ b/jjb/releng-jobs.yaml @@ -0,0 +1,110 @@ +- project: + name: builder-jobs + jobs: + - 'builder-verify-jjb' + - 'builder-merge' + + project: 'releng' + +- job-template: + name: builder-verify-jjb + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - ssh-agent-credentials: + user: '{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' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/master' + file-paths: + - compare-type: ANT + pattern: jjb/** + - compare-type: ANT + pattern: jjb-templates/** + + + builders: + - shell: | + source /opt/virtualenv/jenkins-job-builder/bin/activate + jenkins-jobs test /opt/jenkins-ci/builder/ + +- job-template: + name: 'builder-merge' + + # builder-merge job to run JJB update + # + # This job's purpose is to update all the JJB + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 40 + artifactDaysToKeep: -1 + artifactNumToKeep: 5 + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: 'master' + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + choosing-strategy: 'default' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - gerrit: + trigger-on: + - change-merged-event + - comment-added-contains-event: + comment-contains-value: 'remerge' + projects: + - project-compare-type: 'ANT' + project-pattern: 'releng' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/master' + file-paths: + - compare-type: ANT + pattern: jjb/** + + builders: + - shell: | + source /opt/virtualenv/jenkins-job-builder/bin/activate + jenkins-jobs update --delete-old jjb/ + diff --git a/jjb/releng-macros.yaml b/jjb/releng-macros.yaml new file mode 100644 index 000000000..2c694c847 --- /dev/null +++ b/jjb/releng-macros.yaml @@ -0,0 +1,145 @@ +# OLD Releng macros + +- parameter: + name: project-parameter + parameters: + - string: + name: PROJECT + default: '{project}' + description: "JJB configured PROJECT parameter to identify an opnfv Gerrit project" + +- parameter: + name: gerrit-parameter + parameters: + - string: + name: GERRIT_BRANCH + default: '{branch}' + description: "JJB configured GERRIT_BRANCH parameter" + +- scm: + name: git-scm + scm: + - git: + credentials-id: '{credentials-id}' + url: '$GIT_BASE' + refspec: '' + branches: + - 'origin/{branch}' + skip-tag: true + wipe-workspace: true + +- scm: + name: gerrit-trigger-scm + scm: + - git: + credentials-id: '{credentials-id}' + url: '$GIT_BASE' + refspec: '{refspec}' + branches: + - 'origin/$GERRIT_BRANCH' + skip-tag: true + choosing-strategy: '{choosing-strategy}' + +- wrapper: + name: build-timeout + wrappers: + - timeout: + type: absolute + timeout: 360 + fail: true + +- trigger: + name: gerrit-trigger-patch-submitted + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + 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: '{name}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + +- trigger: + name: gerrit-trigger-patch-merged + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + trigger-on: + - change-merged-event + - comment-added-contains-event: + comment-contains-value: 'remerge' + projects: + - project-compare-type: 'ANT' + project-pattern: '{name}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + +- publisher: + name: archive-artifacts + publishers: + - archive: + artifacts: '{artifacts}' + allow-empty: true + fingerprint: true + latest-only: true + +- publisher: + name: email-notification + publishers: + - email-ext: + recipients: 'jenkins@lists.opnfv.org' + reply-to: + content-type: default + subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!' + body: | + $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: + + Check console output at $BUILD_URL to view the results. + unstable: true + fixed: true + send-to: + - developers + - recipients + +- publisher: + name: jacoco-report + publishers: + - jacoco: + exec-pattern: "**/**.exec" + class-pattern: "**/classes" + source-pattern: "**/src/main/java" + exclusion-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**" + status-update: true + targets: + - branch: + healthy: 10 + unhealthy: 20 + - method: + healthy: 50 + unhealthy: 40 + + +- builder: + name: test-macro + builders: + - shell: 'echo testing macro "test-macro"' + +- builder: + name: wipe-org-opendaylight-repo + builders: + - shell: 'if [ -d /tmp/r/org/opendaylight ]; then rm -rf /tmp/r/org/opendaylight; fi' + +- builder: + name: jacoco-nojava-workaround + builders: + - shell: 'mkdir -p $WORKSPACE/target/classes' diff --git a/jjb/script b/jjb/script new file mode 100644 index 000000000..a3ab79b27 --- /dev/null +++ b/jjb/script @@ -0,0 +1,16 @@ +#!/bin/bash + +for x in copper fastpathmetrics genesis octopus pharos vswitchperf doctor functest ipv6 parser promise vnf_forwarding_graph + +do + +echo $x +#cp -R availability $x/ +cd $x/ +rm -rf availability/ +#mv availability.yml $x.yml +#mv availability.cfg $x.cfg +#sed -i -e "s,availability,$x,g" $x.yml +cd .. + +done diff --git a/jjb/vnf_forwarding_graph/.availability.yml.swp b/jjb/vnf_forwarding_graph/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/vnf_forwarding_graph/.availability.yml.swp differ diff --git a/jjb/vnf_forwarding_graph/vnf_forwarding_graph.cfg b/jjb/vnf_forwarding_graph/vnf_forwarding_graph.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/vnf_forwarding_graph/vnf_forwarding_graph.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/vnf_forwarding_graph/vnf_forwarding_graph.yml b/jjb/vnf_forwarding_graph/vnf_forwarding_graph.yml new file mode 100644 index 000000000..01e2691f6 --- /dev/null +++ b/jjb/vnf_forwarding_graph/vnf_forwarding_graph.yml @@ -0,0 +1,66 @@ +- project: + name: vnf_forwarding_graph + jobs: + - 'vnf_forwarding_graph-test' + - 'vnf_forwarding_graph-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'vnf_forwarding_graph' + somevar: 'foo' + +- job-template: + name: vnf_forwarding_graph-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from vnf_forwarding_graph" + +- job-template: + name: 'vnf_forwarding_graph-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from vnf_forwarding_graph {somevar} daily" + - test-macro + + postbuilders: + - test-macro + diff --git a/jjb/vswitchperf/.availability.yml.swp b/jjb/vswitchperf/.availability.yml.swp new file mode 100644 index 000000000..7ca652091 Binary files /dev/null and b/jjb/vswitchperf/.availability.yml.swp differ diff --git a/jjb/vswitchperf/vswitchperf.cfg b/jjb/vswitchperf/vswitchperf.cfg new file mode 100644 index 000000000..27cff6f0f --- /dev/null +++ b/jjb/vswitchperf/vswitchperf.cfg @@ -0,0 +1,3 @@ +DEPENDENCIES: none +JOB_TEMPLATES: merge,daily +BRANCHES: master diff --git a/jjb/vswitchperf/vswitchperf.yml b/jjb/vswitchperf/vswitchperf.yml new file mode 100644 index 000000000..4064d27d9 --- /dev/null +++ b/jjb/vswitchperf/vswitchperf.yml @@ -0,0 +1,66 @@ +- project: + name: vswitchperf + jobs: + - 'vswitchperf-test' + - 'vswitchperf-daily-master' + + # stream: branch with - in place of / (eg. stable-helium) + # branch: branch (eg. stable/helium) + stream: + - master: + branch: 'master' + + project: 'vswitchperf' + somevar: 'foo' + +- job-template: + name: vswitchperf-test + + project-type: freestyle + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - shell: | + echo "Hello world from vswitchperf" + +- job-template: + name: 'vswitchperf-daily-master' + + # Job template for daily builders + # + # Required Variables: + # stream: branch with - in place of / (eg. stable) + # branch: branch (eg. stable) + + project-type: freestyle + varsetabove: '{somevar}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + prebuilders: + - test-macro + + builders: + - shell: | + echo "Hello world from vswitchperf {somevar} daily" + - test-macro + + postbuilders: + - test-macro + -- cgit 1.2.3-korg