Skip to content

Commit

Permalink
try to capture log in Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamail committed Sep 21, 2020
1 parent 6652e2a commit b7fb9ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ dockerizedBuildPipeline(
python setup.py bdist_wheel
cd dist && WHEEL_NAME=$(ls -1) && cd ..
pip install --user dist/$WHEEL_NAME
jake iq --application jake -vv --stage build --user $IQ_USERNAME --password $IQ_PASSWORD --host https://policy.ci.sonatype.dev
jake iq --application jake -vv --stage build --user $IQ_USERNAME --password $IQ_PASSWORD --host https://policy.ci.sonatype.dev || export jakeFailed=true
cp ${HOME}/.ossinidex/jake.combined.log ${WORKSPACE}
if [ -z "$jakeFailed" ]
then
echo 'Jake failed'
exit 1
fi
'''
}
})
Expand Down

0 comments on commit b7fb9ca

Please sign in to comment.