--
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.