Resuming a failed workflow from the point of failure

I tried the code but got the error:

io.temporal.failure.ActivityFailure: scheduledEventId=35, startedEventId=36, activityType='WaitJenkins', activityId='3fea59fa-d703-39d5-8612-4491a62f2ac7', identity='1@zcp-console-dev-main-va1-meta-5f4f5fb684-q7cqs', retryState=RETRY_STATE_NON_RETRYABLE_FAILURE

So how can I retry if the activity state is RETRY_STATE_NON_RETRYABLE_FAILURE