jenkinsci / slack-plugin

A Jenkins plugin for posting notifications to a Slack channel
https://plugins.jenkins.io/slack/
MIT License
669 stars 413 forks source link

Poll MailBox Trigger - throws Success on Test Connection but job not started #580

Closed VkyHive closed 5 years ago

VkyHive commented 5 years ago

Poll MailBox Trigger - Test connection shows success, but the jenkins job is not getting triggered.

Your checklist for this issue

Description

Please describe your issue here.

Polling started on 10-Jun-2019 12:21:00 Polling for the job AndroidExecution Looking nodes where the poll can be run. Looking for a candidate node to run the poll. Looking for a node with no predefined label. Trying to poll with the last built on node.

Polling on master. Connecting to the mailbox... DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle]

DEBUG: mail.imap.fetchsize: 16384

DEBUG: mail.imap.statuscachetimeout: 1000

DEBUG: mail.imap.appendbuffersize: -1

DEBUG: mail.imap.minidletime: 10

DEBUG: trying to connect to host "imap.gmail.com", port 993, isSSL true

A0 CAPABILITY

DEBUG IMAP: AUTH: XOAUTH2

DEBUG IMAP: AUTH: PLAIN

DEBUG IMAP: AUTH: PLAIN-CLIENTTOKEN

DEBUG IMAP: AUTH: OAUTHBEARER

DEBUG IMAP: AUTH: XOAUTH

DEBUG: protocolConnect login, host=imap.gmail.com, user=iosxhive@gmail.com, password=

A1 AUTHENTICATE PLAIN

AGlvc3hoaXZlQGdtYWlsLmNvbQBIaXZlMTIzNA==

A2 CAPABILITY

[Poll Mailbox Trigger] - Connected! Found properties:

A3 EXAMINE INBOX

A4 SEARCH NOT (SEEN) SUBJECT "jenkins >" SINCE 9-Jun-2019 ALL

A5 FETCH 1659 (ENVELOPE INTERNALDATE RFC822.SIZE)

A5 OK Success

Found matching email(s) : 1

A6 OK Success

A7 FETCH 1659 (BODY.PEEK[HEADER])

) A7 OK Success

A8 FETCH 1659 (BODYSTRUCTURE)

[ERROR] - java.lang.RuntimeException: java.lang.NullPointerException at org.jenkinsci.plugins.pollmailboxtrigger.mail.utils.Stringify.stringify(Stringify.java:330) at org.jenkinsci.plugins.pollmailboxtrigger.mail.utils.MailWrapperUtils$MessagesWrapper.getMessageProperties(MailWrapperUtils.java:107) at org.jenkinsci.plugins.pollmailboxtrigger.PollMailboxTrigger.checkForEmails(PollMailboxTrigger.java:299) at org.jenkinsci.plugins.pollmailboxtrigger.PollMailboxTrigger.checkIfModified(PollMailboxTrigger.java:458) at org.jenkinsci.lib.xtrigger.AbstractTrigger$Runner.run(AbstractTrigger.java:198) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at javax.mail.internet.ParameterList.set(ParameterList.java:533) at com.sun.mail.imap.protocol.BODYSTRUCTURE.parseParameters(BODYSTRUCTURE.java:390) at com.sun.mail.imap.protocol.BODYSTRUCTURE.(BODYSTRUCTURE.java:224) at com.sun.mail.imap.protocol.BODYSTRUCTURE.(BODYSTRUCTURE.java:109) at com.sun.mail.imap.protocol.FetchResponse.parse(FetchResponse.java:158) at com.sun.mail.imap.protocol.FetchResponse.(FetchResponse.java:67) at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:136) at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:267) at com.sun.mail.iap.Protocol.command(Protocol.java:312) at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1453) at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1445) at com.sun.mail.imap.protocol.IMAPProtocol.fetchBodyStructure(IMAPProtocol.java:1145) at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1285) at com.sun.mail.imap.IMAPMessage.getDataHandler(IMAPMessage.java:623) at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1446) at org.jenkinsci.plugins.pollmailboxtrigger.mail.utils.Stringify.stringify(Stringify.java:335) at org.jenkinsci.plugins.pollmailboxtrigger.mail.utils.Stringify.stringify(Stringify.java:328) ... 7 more

A9 CLOSE

A8 OK Success

A9 OK Returned to authenticated state. (Success)

DEBUG: added an Authenticated connection -- size: 1

A10 LOGOUT

DEBUG: IMAPStore connection dead

DEBUG: IMAPStore cleanup, force false

DEBUG: IMAPStore cleanup done

Polling complete. Took 2.5 sec. No changes.

Any pointers would be helpful. Thanks.

timja commented 5 years ago

what has this got to do with the slack plugin?

VkyHive commented 5 years ago

my bad, moving it to proper place.