jenkinsci / poll-mailbox-trigger-plugin

A Jenkins plugin, to poll an email inbox, and trigger jobs based on new emails.
https://plugins.jenkins.io/poll-mailbox-trigger-plugin/
MIT License
40 stars 32 forks source link

Can I use multiple `subjectContains` rows or enter masked text in Advanced Email Properties? #46

Open gf59ru opened 6 years ago

gf59ru commented 6 years ago

I need to process email by several triggers.

Our company develops two related iOS applications that we published both at once. So every time we have two similar emails from Apple where difference is app names only: "App-name 1.2.3 (123)" for iOS is now available to test and "Another-app-name 1.2.3 (123)" for iOS is now available to test

I did add two Jenkins jobs with downloading DSYM files and uploading them to Crashlytics. Both jobs has email trigger with subjectContains=for iOS is now available to test, and we have excess job launches.

If I replace subjectContains=for iOS is now available to test trigger with App-name and Another-app-name, excess job launches will be appear too because of letters from non-Apple users.

Can I use double-condition trigger? Will second subjectContains= row help me? Or may be this option support mask (eg subjectContains=* for iOS is now available to test)