更新jenkinsfile
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.fangjia.script.jms
|
||||
|
||||
import com.fangjia.core.Constants
|
||||
import com.fangjia.script.BaseBatch
|
||||
import com.fangjia.script.BatchOwner
|
||||
import com.fangjia.script.Watcher
|
||||
@@ -24,10 +25,8 @@ public class EmailConsumer extends BaseBatch {
|
||||
|
||||
static def lastSendTime = 0;
|
||||
static def email_pattern = ~/^[-\w\.]+@(?:\w+[\.-]?)*\w+$/;
|
||||
//static final String EMAIL_SERVER = "222.73.196.139"
|
||||
static final String EMAIL_SERVER = "smtp.exmail.qq.com"
|
||||
public static final DBCollection EMAIL_SEND_LOG = MongoUtils.getCollectionByName("goojia_common", "email_send_log", "log.mongo.db.fangjia.com", 52002);
|
||||
|
||||
public final static DBCollection EMAIL_SEND_LOG = com.fangjia.core.util.MongoUtils.getDbCollection(Constants.SEAWATER_MONGO_URI, 'goojia_common', 'email_send_log')
|
||||
public static void main(String[] args) {
|
||||
runBatch(new EmailConsumer(), args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user