summaryrefslogtreecommitdiffstats
path: root/jjb/vnfrqts
diff options
context:
space:
mode:
authorHagop Bozawglanian <hagop.bozawglanian@att.com>2019-02-04 23:59:18 +0000
committerHagop Bozawglanian <hagop.bozawglanian@att.com>2019-02-05 19:24:36 +0000
commit9ca42f6ad0af1d49603ad2d720986d23f0bc7753 (patch)
tree952808a458e6b1846e0a230562bedf5606732aa5 /jjb/vnfrqts
parent3e55bbdc482bfbca060bc9fbecbfe4b8e6c020ea (diff)
[VNFRQTS] - Daily JJB for VNFRQTS for json
Daily JJB to generate the needs.json including all the requirements. Issue-ID: VNFRQTS-534 Change-Id: Id28c469a6144c22c4652a8e2a70bd231eb5a0087 Signed-off-by: Hagop Bozawglanian <hagop.bozawglanian@att.com>
Diffstat (limited to 'jjb/vnfrqts')
-rw-r--r--jjb/vnfrqts/build-and-upload.yaml50
-rw-r--r--jjb/vnfrqts/build-needs.sh7
-rw-r--r--jjb/vnfrqts/vnfrqts-requirements.yaml12
3 files changed, 69 insertions, 0 deletions
diff --git a/jjb/vnfrqts/build-and-upload.yaml b/jjb/vnfrqts/build-and-upload.yaml
new file mode 100644
index 000000000..b97fd468a
--- /dev/null
+++ b/jjb/vnfrqts/build-and-upload.yaml
@@ -0,0 +1,50 @@
+---
+- job-template:
+ # Job template for running a script to build an artifact and
+ # upload it to nexus as RAW artifacts.
+ #
+
+ name: '{project-name}-{stream}-build-and-upload'
+
+ project-type: freestyle
+ concurrent: true
+ node: '{build-node}'
+
+ properties:
+ - infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+
+ parameters:
+ - infra-parameters:
+ project: '{project}'
+ branch: '{branch}'
+ refspec: 'refs/heads/{branch}'
+ artifacts: '{archive-artifacts}'
+
+ scm:
+ - git:
+ credentials-id: '{jenkins-ssh-credential}'
+ url: '$GIT_BASE'
+ refspec: ''
+ choosing-strategy: 'default'
+ branches:
+ - 'refs/heads/{branch}'
+ skip-tag: true
+ wipe-workspace: true
+ submodule:
+ recursive: '{submodule-recursive}'
+ timeout: '24'
+
+ wrappers:
+ - infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ triggers:
+ - timed: 'H H * * *'
+
+ builders:
+ - shell: '{script}'
+
+ publishers:
+ - infra-shiplogs:
+ maven-version: '{maven-version}'
diff --git a/jjb/vnfrqts/build-needs.sh b/jjb/vnfrqts/build-needs.sh
new file mode 100644
index 000000000..85de18bfa
--- /dev/null
+++ b/jjb/vnfrqts/build-needs.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+virtualenv $WORKSPACE/venv-tox
+source $WORKSPACE/venv-tox/bin/activate
+pip install --upgrade pip
+pip install -r etc/requirements.txt
+ls
+tox -e docs \ No newline at end of file
diff --git a/jjb/vnfrqts/vnfrqts-requirements.yaml b/jjb/vnfrqts/vnfrqts-requirements.yaml
index e62095f83..9d1a483af 100644
--- a/jjb/vnfrqts/vnfrqts-requirements.yaml
+++ b/jjb/vnfrqts/vnfrqts-requirements.yaml
@@ -7,3 +7,15 @@
project-name: 'vnfrqts-requirements'
branch: 'master'
mvn-settings: 'vnfrqts-requirements-settings'
+
+- project:
+ name: vnfrqts-requirements-upload-json
+ project: 'vnfrqts/requirements'
+ project-name: 'vnfrqts-requirements'
+ stream:
+ - 'master':
+ branch: 'master'
+ jobs:
+ - '{project-name}-{stream}-build-and-upload':
+ script:
+ !include-raw-escape: 'build-needs.sh'