Hello i am trying to send email notification to relevant developers in 
pipeline using model definition 
with this:

notifications {
        always {
          emailext(body: 'Check console output at ${env.BUILD_URL} to view 
the results.', recipientProviders: [[$class: 
'DevelopersRecipientProvider'], [$class: 'CulpritsRecipientProvider']], 
subject: '${env.JOB_NAME} ${env.BRANCH_NAME} - Build #${env.BUILD_NUMBER} - 
FAILED!')
        }
    }

it fails with the following errors:

ERROR: Attempted to execute a notification step that requires a node context. 
Notifications do not run inside a 'node { ... }' block.Finished 
<http://stacktrace.jenkins-ci.org/search?query=Finished>: FAILURE


Trying to understand the error message and the fix it if i can?

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b80ffb06-c458-4aad-957a-3e8e720492d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to