summaryrefslogtreecommitdiffstats
path: root/jjb/dcae
diff options
context:
space:
mode:
authorlj1412 <lji@research.att.com>2017-02-15 03:25:16 +0000
committerLusheng Ji <lji@research.att.com>2017-02-15 21:27:39 +0000
commit14da554f48f877c4ec0e1aa708459896922076bf (patch)
treee6ff29102ee580c0a37decf34cac48b33f7c21fc /jjb/dcae
parent34a12ba9b3eb93653ab919d6fc3577a2873f7777 (diff)
use include-raw instead of inline for script
Change-Id: I78651d8c24199a6e281746b1ef27d73908e5ba11 Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'jjb/dcae')
-rw-r--r--jjb/dcae/include-raw-pgaas.sh33
-rw-r--r--jjb/dcae/pgaas.yaml32
2 files changed, 65 insertions, 0 deletions
diff --git a/jjb/dcae/include-raw-pgaas.sh b/jjb/dcae/include-raw-pgaas.sh
new file mode 100644
index 000000000..cded4b1e6
--- /dev/null
+++ b/jjb/dcae/include-raw-pgaas.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+# Create a debian package and push to remote repo
+#
+echo "============== STARTING SCRIPT TO CREATE DEBIAN FILES ================="
+
+export BUILD_NUMBER="${BUILD_ID}"
+export PATH=$PATH:${WORKSPACE}/buildtools/bin
+
+#export OPENECOMP_NEXUS_RAW="https://nexus.openecomp.org/content/sites/raw"
+export OPENECOMP_NEXUS_RAW="${NEXUSPROXY}/content/sites/raw"
+export OPENECOMP_NEXUS_USER=$(xpath -q -e \
+ "//servers/server[id='ecomp-raw']/username/text()" "$SETTINGS_FILE")
+export OPENECOMP_NEXUS_PASSWORD=$(xpath -q -e \
+ "//servers/server[id='ecomp-raw']/password/text()" "$SETTINGS_FILE")
+
+echo $OPENECOMP_NEXUS_RAW
+echo $OPENECOMP_NEXUS_USER
+echo $OPENECOMP_NEXUS_PASSWORD
+
+export REPACKAGEDEBIANUPLOAD="set -x; curl -k \
+ --user ${OPENECOMP_NEXUS_USER}:${OPENECOMP_NEXUS_PASSWORD}' \
+ --upload-file '{0}' \
+ '${OPENECOMP_NEXUS_RAW}/org.openecomp.dcae/deb-snapshots/{2}/{1}'"
+export REPACKAGEDEBIANUPLOAD2="set -x; curl -k \
+ --user '${OPENECOMP_NEXUS_USER}:${OPENECOMP_NEXUS_PASSWORD}' \
+ --upload-file '{0}' \
+ '${OPENECOMP_NEXUS_RAW}/org.openecomp.dcae/deb-snapshots/{2}/{4}-LATEST.deb'"
+make debian
+echo "================= ENDING SCRIPT TO CREATE DEBIAN FILES ================="
+
+#echo "============= STARTING SCRIPT TO CREATE JAVADOCS FILES ================"
+#make upload-javadocs
+#echo "============= ENDING SCRIPT TO CREATE JAVADOCS FILES =================="
diff --git a/jjb/dcae/pgaas.yaml b/jjb/dcae/pgaas.yaml
new file mode 100644
index 000000000..751ccfc24
--- /dev/null
+++ b/jjb/dcae/pgaas.yaml
@@ -0,0 +1,32 @@
+---
+
+- project:
+ name: dcae-pgaas
+ project-name: 'dcae-pgaas'
+ jobs:
+ - '{project-name}-{stream}-multi-scm-verify-script'
+
+
+ # script: build script to execute
+ # extra-project: extra gerrit project to checkout
+ # extra-refspec: refspec for the extra project
+ # extra-branch: branch to checkout for the extra project
+ # checkout-dir: directory to checkout the extra project to
+ # DO NOT SET THIS TO anything that translates to
+ # $WORKSPACE as it will destroy the initial
+ # project checkout
+
+ project: 'dcae/pgaas'
+ stream:
+ - 'master':
+ branch: 'master'
+ mvn-settings: 'dcae-pgaas-settings'
+ files: '**'
+ archive-artifacts: ''
+ build-node: ubuntu1604-basebuild-4c-4g
+ extra-project: 'dcae/utils/buildtools'
+ extra-branch: 'master'
+ extra-refspec: 'refs/heads/{branch}'
+ checkout-dir: 'buildtools'
+ script:
+ !include-raw-escape: 'include-raw-pgaas.sh'