Merge "[VNFRQTS] - Daily JJB for VNFRQTS for json"
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 5 Feb 2019 19:41:56 +0000 (19:41 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 5 Feb 2019 19:41:56 +0000 (19:41 +0000)
jjb/vnfrqts/build-and-upload.yaml [new file with mode: 0644]
jjb/vnfrqts/build-needs.sh [new file with mode: 0644]
jjb/vnfrqts/vnfrqts-requirements.yaml

diff --git a/jjb/vnfrqts/build-and-upload.yaml b/jjb/vnfrqts/build-and-upload.yaml
new file mode 100644 (file)
index 0000000..b97fd46
--- /dev/null
@@ -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 (file)
index 0000000..85de18b
--- /dev/null
@@ -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
index e62095f..9d1a483 100644 (file)
@@ -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'