Greetings, I'm integrating Opsgenie with Jenkins from pipelines. I created 2 pipelines with the same code that represents a sample code present in this link: https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jenkins/.
In the first case use the groovy sandbox to run the pipeline script and in the second case I ran the script from a Jenkinsfile.
Case 1:
Jenkins Pipeline:

Jenkins Pipeline Job:

Opsgenie notification (via slack):

In this case, everything went as it should. I ran the pipeline and gave an error to verify that the failure notification appeared in Opsgenie and is validated.
Case2:
Jenkinsfile:

Jenkins Pipeline:

Jenkins Pipeline Job:

As you can see in the Jenkins pipeline job screenshot, the request for Opsgenie is made. My question or problem is that Opsgenie does not notify slack as it did in the first case, so I would like to have some help here if possible.
cheers.