summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorYolanda Robla <yroblamo@redhat.com>2018-09-20 10:46:02 +0200
committerYolanda Robla <yroblamo@redhat.com>2018-09-20 10:49:04 +0200
commit8be7131b51e3621f4d379c2413495d8ff4716343 (patch)
tree5a49b17266df75b8e139a2f0d1726734c88c2146 /jjb
parent4cd5733f55a46acd1025589a7e904fb4c89fad7a (diff)
Use credentials for openci job
Change-Id: Ie25586d8ef73a34b68fdf5580df27e5e609e84ce Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/openci/create-cde.sh6
-rw-r--r--jjb/openci/openci-opnfv-daily-jobs.yaml5
2 files changed, 6 insertions, 5 deletions
diff --git a/jjb/openci/create-cde.sh b/jjb/openci/create-cde.sh
index 37d245213..ae50b3d73 100755
--- a/jjb/openci/create-cde.sh
+++ b/jjb/openci/create-cde.sh
@@ -36,11 +36,7 @@ cat <<EOF > ./json_body.txt
}
EOF
-# temporary: until we can embed credentials plugin
-ACTIVEMQ_USER="openci"
-ACTIVEMQ_PASSWORD="openciP@ssw0rd"
-
-openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt
+python openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt
echo "Constructed $PUBLISH_EVENT_TYPE"
echo "--------------------------------------------"
diff --git a/jjb/openci/openci-opnfv-daily-jobs.yaml b/jjb/openci/openci-opnfv-daily-jobs.yaml
index 40e61ce7e..05407bc3f 100644
--- a/jjb/openci/openci-opnfv-daily-jobs.yaml
+++ b/jjb/openci/openci-opnfv-daily-jobs.yaml
@@ -47,6 +47,11 @@
- 'opnfv-build-defaults'
wrappers:
+ - credentials-binding:
+ - username-password-separated:
+ credential-id: openci-connect-activemq
+ username: ACTIVEMQ_USER
+ password: ACTIVEMQ_PASSWORD
- workspace-cleanup
triggers: