File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
integration-tests/src/test/resources
src/integration-tests/bash Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,16 @@ function state_dump {
114
114
else
115
115
echo Run failed.
116
116
fi
117
+ if [ " $JENKINS " = " true" ]; then
118
+ # Jenkins can only publish logs under the workspace
119
+ mkdir -p ${WORKSPACE} /logdir/
120
+ cp $ARCHIVE ${WORKSPACE} /logdir/
121
+ if [ " $? " = " 0" ]; then
122
+ echo Copy complete. Archive $ARCHIVE copied to ${WORKSPACE} /logdir/
123
+ else
124
+ echo Failed to copy archive $ARCHIVE to ${WORKSPACE} /logdir/
125
+ fi
126
+ fi
117
127
else
118
128
# command failed
119
129
cat $RESULT_DIR /pvarchive.b64 | head -100
Original file line number Diff line number Diff line change @@ -39,6 +39,16 @@ function archive {
39
39
rm -f $OUTFILE
40
40
41
41
find $ARCHIVE_DIR -maxdepth 1 -name " IntSuite*jar" | sort -r | awk ' { if (NR>10) print $NF }' | xargs rm -f
42
+ if [ " $JENKINS " = " true" ]; then
43
+ # Jenkins can only publish logs under the workspace
44
+ mkdir -p ${WORKSPACE} /logdir/
45
+ cp $ARCHIVE ${WORKSPACE} /logdir/
46
+ if [ " $? " = " 0" ]; then
47
+ echo Copy complete. Archive $ARCHIVE copied to ${WORKSPACE} /logdir/
48
+ else
49
+ echo Failed to copy archive $ARCHIVE to ${WORKSPACE} /logdir/
50
+ fi
51
+ fi
42
52
43
53
trace Archived to \' $ARCHIVE \' .
44
54
}
You can’t perform that action at this time.
0 commit comments