{"version":"1.0","type":"rich","title":"Shell script to wait on a upstream jenkins job - a \"block\" node in an execution graph","description":"A shell script uses the Jenkins REST API to wait for upstream jobs to finish, polling each job’s `/api/json?pretty=true` endpoint with Python’s `requests` and `json` libraries. It checks the `color` field for `\"anime\"` to detect a running build, sleeping 5 seconds between polls. After completion, it asserts that the last completed build equals the last successful build, confirming success. The script supports multiple upstream jobs by splitting a comma-separated `JOB_TO_WAIT_FOR` variable and tracking status in a list, effectively acting as a blocking node in an execution graph.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-ce25939367bcb2e6be9ce4f41a5edd8f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}