티스토리 뷰
728x90
chmod 755 /root
chmod 755 /root/deploy
chmod 755 /root/deploy/bot
sudo pkill -f python3
sudo rm -rf /root/deploy
sudo mkdir -p -m777 /root/deploy
sudo mv * /root/deploy
cd /root/deploy/bot
sleep 3s
sudo nohup python3 app.py > /dev/null 2>&1 &
https://stackoverflow.com/questions/37930295/executing-pkill-in-a-shell-via-jenkins-fails-the-build
Executing "pkill" in a shell via Jenkins - fails the build
I am executing a pkill command on a linux shell via Jenkins. This command always fails the build, when the process does not exist. sudo docker exec mycontainer sh -c 'pkill -f processToKill || tru...
stackoverflow.com
https://blog.hometown.co.kr/589
Jenkins 포스트 쉘 스크립트 권한 관련 문제
리눅스 장비에 jenkins 를 설치하고나서 배포를 하다가 포스트 쉘 스크립트를 넣었다가 권한 문제로 에러를 여러차례 겪었는데... jenkins는 jenkins 유저를 사용하고 있기 때문에 사용하려는 쉘에 접�
blog.hometown.co.kr
728x90
'공부' 카테고리의 다른 글
[Python] map(dict) put (0) | 2020.06.27 |
---|---|
[Python] TypeError: Unicode-objects must be encoded before hashing (md5) (0) | 2020.06.27 |
[jenkins] build & sudo & nohup & pkill (0) | 2020.06.27 |
[Python] flask swagger parameter model (0) | 2020.06.26 |
[Java] list files in directory (0) | 2020.06.26 |
[Spark] small files in hadoop too slow (0) | 2020.06.26 |
댓글