docker run --name robot -p32222:22 --rm -it yingjun/robotframework-runner:ubuntu-2
ssh root@ip -p 22
Dockerfile
ENV http_proxy http://proxy:8080
ENV https_proxy http://proxy:8080
container
export http_proxy=http://proxy:8080
export https_proxy=http://proxy:8080
You can use SSH plus-in on jenkins shell to exec.
Example Script
ssh root@ip -p 22
export http_proxy=http://proxy:8080
export https_proxy=http://proxy:8080
cd /home/seluser/exec/
wget http://10.131.66.209/yingjun/demo/repository/master/archive.zip -O archive
unzip -o -d temp archive.zip
cd temp
#/home/seluser/exec/temp
mv -f * ../projectlab
cd ..
#/home/seluser/exec/
python paec.py --rp_endpoint http://ip:port --rp_project projectname --rp_uuid xxx-xxx-xxx-xx --rp_launch_name launch+name --rp_launch_tags demo --tests_folder_name "/home/seluser/exec/projectlab/tests"
Reference & Thanks: rastasheep/ubuntu-sshd ivonet/robotframework-ride softsam/robotframework-ride
Content type
Image
Digest
Size
78.8 MB
Last updated
over 8 years ago
docker pull yingjun/robotframework-runner