Error on Go 2.1

Follow

Comments

2 comments

  • Avatar
    Santosh Hegde

    Hi Brett,


    Could you give us the Job config snippet from source XML for this particular job?

    Thanks,


    Santosh

  • Avatar
    Brett Cave

    <job name="deploy_dev_db">
    <tasks>
    <fetchartifact pipeline="SomeProjectBuild" stage="Deploy" job="deploy" srcdir="db" />
    <exec command="/bin/bash" args="/usr/local/bin/database-deployer.sh db project-database-" />
    </tasks>
    <resources>
    <resource>db</resource>
    <resource>project</resource>
    </resources>
    </job>

    database-deployer.sh is a simplish bash script. The job fails almost immediately, so it's not like its even getting past the extraction of the archive.

    DIR=$1
    PATTERN=$2

    for file in `find $DIR -name $PATTERN-*.tar.bz2`; do
            tar -jxf $file
            cd database
            run_database_update
            cd ..
    done

Please sign in to leave a comment.