Jenkins Job

21 views
Skip to first unread message

GBANE FETIGUE

unread,
Oct 12, 2015, 9:47:46 AM10/12/15
to Jenkins Developers

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 ?
Reply all
Reply to author
Forward
0 new messages