Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57665

Hubotapprove does not exclude build_user from approve/abort

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • hubot-steps-plugin
    • None
    • TEST

      Hi Team,

       

      I am using below code where in hubotApprove command do not have my id in submitter list but still it lets me approve or abort when I trigger this pipeline:

       

      stage ('Request Approval from #devOps on rocket.chat') {
      steps {
      wrap([$class: 'BuildUser']) {
      sh """USER=${BUILD_USER_ID}"""
      hubotSend site: "forge_trial", message: "Permission requested to delete ${params.project_name} - Other users please approve except $BUILD_USER_ID who has triggered the deletion"
      hubotApprove site: "forge_trial", message: "Proceed or Abort $BUILD_URL/input/", submitter: "a,b,c,d", tokens: "$BUILD_NUMBER, $JENKINS_URL"

            nrayapati Naresh Rayapati
            rashminair90 Rashmi Nair
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: