Use credentials for openci job 13/62613/1
authorYolanda Robla <yroblamo@redhat.com>
Thu, 20 Sep 2018 08:46:02 +0000 (10:46 +0200)
committerYolanda Robla <yroblamo@redhat.com>
Thu, 20 Sep 2018 08:49:04 +0000 (10:49 +0200)
Change-Id: Ie25586d8ef73a34b68fdf5580df27e5e609e84ce
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
jjb/openci/create-cde.sh
jjb/openci/openci-opnfv-daily-jobs.yaml

index 37d2452..ae50b3d 100755 (executable)
@@ -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 "--------------------------------------------"
index 40e61ce..05407bc 100644 (file)
       - 'opnfv-build-defaults'
 
     wrappers:
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: openci-connect-activemq
+              username: ACTIVEMQ_USER
+              password: ACTIVEMQ_PASSWORD
       - workspace-cleanup
 
     triggers: