Logic (1) 썸네일형 리스트형 [Linux] retry logic in script linux command로 script를 (특히 jenkins 배치잡으로) 실행할 때 배치잡이 실패하는 경우 횟수 조건을 줘서 retry 하도록 하는 command를 알아본다. #!/bin/bashslack_webhook_url = retry_limit=3# secondstimegap=60job_step_result=$?echo "job_step_result: $job_step_result"if [[ $job_step_result -ne 0 ]]; then for i in $(seq 1 $retry_limit); do echo "retry $i time, waiting $timegap sec..." # message to slack message="retry $.. 이전 1 다음