Re: Jenkins Job

22 views
Skip to first unread message

Baptiste Mathus

unread,
Oct 12, 2015, 10:13:01 AM10/12/15
to jenkins...@googlegroups.com
(Hi, please use users list in the future for this kind of question, I just redirected it to there.)


Cheers

PS : you should also try and choose a more specific email subject next time. As you can imagine, a lot of things going on here are about "Jenkins jobs" ;-).

2015-10-12 15:47 GMT+02:00 GBANE FETIGUE <bem...@gmail.com>:

Hey guys,


I built a Jenkins job and for some reason it's not working everything seems fine but the console ouput gives me that error :

ERROR: Invalid ini entry: ansible - need more than 1 value to unpack
Build step 'Execute shell' marked build as failure
Finished: FAILURE

By the way here is my ansible script

#!/bin/bash


ARTIFACT_VERSION=$GIT_COMMIT-$BUILD_ID--$BUILD_NUMBER
ARTIFACT_NAME=cs-system-status-$ARTIFACT_VERSION.tar.gz

/bin/rm *.tar.gz
/bin/tar -cvzf $ARTIFACT_NAME .
/usr/bin/s3cmd put $ARTIFACT_NAME s3://snapav-code/cs-system-status/

#!/bin/bash

ARTIFACT_VERSION=$GIT_COMMIT-$BUILD_ID--$BUILD_NUMBER

/bin/echo "$version"
cd /usr/bin/ansible

cd /var/lib/jenkins/jobs/build-cs-utils/workspace/playbooks

ansible-playbook -i inventory/prod -e "
target=status
artifact_name=cs-system-status
artifact_version=$ARTIFACT_VERSION
" deploy_system_status.yml

#!/bin/bash

s3cmd ls s3://snapav-code/cs-system-status/ | sort -r | awk '{NF > 0;print $4}' | grep ".tar.gz" | tail -n +51 | xargs -r s3cmd del


Anybody has an idea ?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c60e954a-d06c-4188-80db-8de63d9ba99f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Baptiste Mathus

unread,
Oct 12, 2015, 10:17:00 AM10/12/15
to jenkins...@googlegroups.com
Looking for your issue leads to https://github.com/ansible/ansible/issues/4186

Wild guess here, are you sure your inventory/prod file is correct? This seems like a pure Ansible error. I would really try and execute the very same thing through CLI (on the slave manually, here) to see if this does work or not.

HTH
Reply all
Reply to author
Forward
0 new messages