Jenkins job to check if a server is up

Job ID: 35101295

Budget: $30 – $250 USD

We already have jenkinsfile ready running jobs. I need help with updating our jenkinsfile to check if a server is up or not. If it is up the the job should continue, if server is down the it should stop running the job.
Related categories: Jenkins DevOps