Skip to content

Commit

Permalink
[Experient] to get DRONE_MACHINE info
Browse files Browse the repository at this point in the history
  • Loading branch information
luwang-vmware committed Dec 22, 2018
1 parent 67eb0cc commit b5778c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ pipeline:
- test_url
- test_username
- vch_timeout
- drone_machine
volumes:
- /tmp
commands:
- echo ${DRONE_MACHINE}
- tests/robot-run.sh
when:
repo: vmware/vic-product
Expand Down
4 changes: 3 additions & 1 deletion tests/robot-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ set -x
gsutil version -l
set +x

echo ${DRONE_MACHINE}

dpkg -l > package.list

# check parameters
Expand Down Expand Up @@ -50,4 +52,4 @@ else
# re-run only failed tests and merge results
pabot --verbose --processes 3 -d robot-logs --rerunfailed robot-logs/original.xml --output rerun.xml $run_options tests/test-cases
rebot -d robot-logs --merge robot-logs/original.xml robot-logs/rerun.xml
fi
fi

0 comments on commit b5778c9

Please sign in to comment.