From: Yolanda Robla Date: Thu, 20 Sep 2018 08:46:02 +0000 (+0200) Subject: Use credentials for openci job X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=commitdiff_plain;h=8be7131b51e3621f4d379c2413495d8ff4716343 Use credentials for openci job Change-Id: Ie25586d8ef73a34b68fdf5580df27e5e609e84ce Signed-off-by: Yolanda Robla --- 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 < ./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: