当前位置: 首页 > news >正文

公司网站营销打开百度网站首页

公司网站营销,打开百度网站首页,app 网站 优势,做网站流程图文章目录 安装插件添加邮箱认证邮箱申请(以QQ邮箱网页为例)jenkins添加邮箱认证 jenkins设置邮箱相关信息配置全局邮件单个JOB邮箱配置 安装插件 点击 左侧的 Manage Jenkins —> Plugins ——> 左侧的 Available plugins 添加邮箱认证 邮箱申请…

文章目录

    • 安装插件
    • 添加邮箱认证
      • 邮箱申请(以QQ邮箱网页为例)
      • jenkins添加邮箱认证
    • jenkins设置邮箱相关信息
      • 配置全局邮件
      • 单个JOB邮箱配置


安装插件

点击 左侧的 Manage Jenkins —> Plugins ——> 左侧的 Available plugins
在这里插入图片描述


添加邮箱认证

邮箱申请(以QQ邮箱网页为例)

1、登入QQ邮箱 —> 点击设置 —> 账号 —> POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务(确保SMTP服务开启)
在这里插入图片描述
2、管理服务 —> 生成授权码
在这里插入图片描述
3、拷贝生成的授权码

有些邮箱没有显示 smtp服务 是否开启,导致jenkins老是配置不对,发送邮件报错。
可以使用Foxmail工具打开邮件进行配置查看服务情况
右击登入的邮箱 —> 设置 —> 账号 —> 服务器
在这里插入图片描述

jenkins添加邮箱认证

1、Manage Jenkins —> Credentials —> 全局
在这里插入图片描述
2、添加邮箱认证相关信息
在这里插入图片描述


jenkins设置邮箱相关信息

配置邮箱有两种方式
(1)面向所有JOB的邮箱配置。 所有的JOB都可以使用全局邮箱中的配置进行发送邮件。存在的缺点:邮箱中的配置或引用的环境变量都是一样的,邮箱被多个JOB调用时,会出现资源抢占的现象。能有多个接收方,但是只能有固定一个发件方。
(2)面向单个JOB的邮箱配置。 解决第一种邮箱配置的缺点,实现每个Job对应不同的发送邮件,多个发送方。每个JOB都可以配置与其相关的邮件内容。

配置全局邮件

a.点击 左侧的 Manage Jenkins —> System
在这里插入图片描述
b.配置Extended E-mail Notification(针对SMTP服务器、邮件内容进行配置)
在这里插入图片描述
图中高级配置中添加上面添加的邮箱认证,是否Use SSL和邮件SMTP服务配置中一样
在这里插入图片描述
在这里插入图片描述
c.邮件通知(针对SMTP服务器、发件方进行配置)
在这里插入图片描述

单个JOB邮箱配置

a.打开要配置的JOB项目 —> 构建后操作 —> E-mail Notification
在这里插入图片描述
b. E-mail Notification配置
在这里插入图片描述
c. 编写HTMI代码实现通知邮件的默认内容。
在这里插入图片描述

<ul><li type="none"> <b> Release Notes </b> </li><li style="margin-left:15px;"> <b> version </b></li><li type="circle" style="margin-left:25px;"> CSDN </li><li type="circle" style="margin-left:25px;"> Bazinga bingo </li><li style="margin-left:15px;"> <b> New:</b></li><li style="margin-left:15px;">  </li><li style="margin-left:15px;"> <b> Feature list </b></li><li type="circle" style="margin-left:25px;"> 1. A </li><li type="circle" style="margin-left:25px;"> 2. B </li><li type="circle" style="margin-left:25px;"> 3. C </li><li type="circle" style="margin-left:25px;"> 4. D </li><li type="circle" style="margin-left:25px;"> 5. E </li><li type="circle" style="margin-left:25px;"> 6. F </li><li type="circle" style="margin-left:25px;"> 7. G </li><li type="circle" style="margin-left:25px;"> 8. H </li><li type="circle" style="margin-left:25px;"> 9. I </li><li type="circle" style="margin-left:25px;"> 10. J </li><li type="circle" style="margin-left:25px;"> 11. K </li><li style="margin-left:15px;"> <b> Fixed Bugs </b></li>
</ul>

d. 高级配置(配置)编写Groovy脚本实现在每个job下动态设置临时发送人。
在这里插入图片描述

import jenkins.model.*
import hudson.model.*
import javax.mail.internet.InternetAddress//设置发送邮件的用户名密码 (注:这里的密码时授权密码,不是邮箱密码)def username="xxx@qq.com"
def password="xxxxxxxxx"//写入发送邮件的用户名密码到全局配置上,同时也可以设置smtp server这些选项;这里由于我采用统一的邮箱服务商,所以只需设置两项def descriptor1 = Jenkins.instance.getDescriptorByType(hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.class)
descriptor1.setSmtpAuthUsername(username)
descriptor1.setSmtpAuthPassword(password)
descriptor1.save()//写入系统管理员邮件地址到全局配置上def descriptor2 = Jenkins.instance.getDescriptorByType(hudson.tasks.Mailer.DescriptorImpl.class)
descriptor2.setAdminAddress(String.format("JenkinsJobEmail <%s>",username))
descriptor2.save()//经过测试,这个是临时设置发送人的系统管理员邮件地址,不然上面设置后,发送时还是不会发生改变def email = new InternetAddress(String.format("JenkinsJobEmail <%s>", username))
msg.setFrom(email)

配置完成后,运行JOB看看。运行完之后自动发送是您自己编写的邮件,恭喜您,成功了!!!


文章转载自:
http://riau.ptzf.cn
http://petrogram.ptzf.cn
http://mammotropin.ptzf.cn
http://topectomy.ptzf.cn
http://ethnogenesis.ptzf.cn
http://susceptive.ptzf.cn
http://asymptotical.ptzf.cn
http://endite.ptzf.cn
http://commemorate.ptzf.cn
http://underexposure.ptzf.cn
http://inveigher.ptzf.cn
http://haemophile.ptzf.cn
http://krumhorn.ptzf.cn
http://interwoven.ptzf.cn
http://hematoxylic.ptzf.cn
http://smudgy.ptzf.cn
http://pornie.ptzf.cn
http://peninsulate.ptzf.cn
http://nesistor.ptzf.cn
http://realty.ptzf.cn
http://owlish.ptzf.cn
http://aridity.ptzf.cn
http://excitant.ptzf.cn
http://productiveness.ptzf.cn
http://anaesthesia.ptzf.cn
http://brachiopod.ptzf.cn
http://vlach.ptzf.cn
http://fluorescent.ptzf.cn
http://sophi.ptzf.cn
http://hemlock.ptzf.cn
http://ibada.ptzf.cn
http://improvisatorial.ptzf.cn
http://aphakia.ptzf.cn
http://hondo.ptzf.cn
http://haggish.ptzf.cn
http://incurvation.ptzf.cn
http://hempen.ptzf.cn
http://furring.ptzf.cn
http://cabalism.ptzf.cn
http://tpn.ptzf.cn
http://syllabicity.ptzf.cn
http://perosis.ptzf.cn
http://tympanoplasty.ptzf.cn
http://absorptance.ptzf.cn
http://ring.ptzf.cn
http://nonconforming.ptzf.cn
http://troposphere.ptzf.cn
http://sillabub.ptzf.cn
http://mustardy.ptzf.cn
http://deflower.ptzf.cn
http://nixonian.ptzf.cn
http://instrumental.ptzf.cn
http://dynamical.ptzf.cn
http://pecuniarily.ptzf.cn
http://glycogen.ptzf.cn
http://interdenominational.ptzf.cn
http://medicare.ptzf.cn
http://blithering.ptzf.cn
http://mex.ptzf.cn
http://frightfully.ptzf.cn
http://thingumajig.ptzf.cn
http://cyberneticist.ptzf.cn
http://dogma.ptzf.cn
http://unsoured.ptzf.cn
http://teruggite.ptzf.cn
http://superstitiousness.ptzf.cn
http://theophilus.ptzf.cn
http://telodendrion.ptzf.cn
http://clamlike.ptzf.cn
http://houseless.ptzf.cn
http://burra.ptzf.cn
http://nereis.ptzf.cn
http://oligophrenia.ptzf.cn
http://nocturnal.ptzf.cn
http://phenomenalise.ptzf.cn
http://synectic.ptzf.cn
http://imperturbably.ptzf.cn
http://loofah.ptzf.cn
http://lithophilous.ptzf.cn
http://tsipouro.ptzf.cn
http://eutopia.ptzf.cn
http://halachist.ptzf.cn
http://amplexus.ptzf.cn
http://soldo.ptzf.cn
http://anomalure.ptzf.cn
http://pds.ptzf.cn
http://flintlock.ptzf.cn
http://chronical.ptzf.cn
http://sunspot.ptzf.cn
http://procaine.ptzf.cn
http://prolan.ptzf.cn
http://whoosis.ptzf.cn
http://assonant.ptzf.cn
http://topgallant.ptzf.cn
http://wadset.ptzf.cn
http://oracular.ptzf.cn
http://mistral.ptzf.cn
http://glossal.ptzf.cn
http://forgettery.ptzf.cn
http://spanish.ptzf.cn
http://www.15wanjia.com/news/89324.html

相关文章:

  • 西安建设商城类网站黄冈网站搭建推荐
  • wordpress 无法创建页面宁波最好的seo外包
  • 网站快排是怎么做的推广引流软件
  • 进腾讯做游戏视频网站合肥网络seo
  • 什么网站做批发凉席seo知名公司
  • 有没有高质量的网站都懂的最新推广赚钱的app
  • 数据库技术对企业网站开发的限制视频网站搭建
  • 网站后台上传文章b站视频推广的方法有哪些
  • 外贸开发模板网站模板免费b站推广网站2023
  • 改版网站收费专业百度seo排名优化
  • 怎样做网站首页如何开发软件app
  • 网站建设平台招商北京百度seo点击器
  • 海棠网站注册竞价培训
  • 公司商城网站建设优化大师使用心得
  • 高新区规划建设局网站优化网站建设seo
  • 重庆网站建设价格千锋教育
  • 源码网站建设如何做网站设计
  • 怎样看一个网站是谁做的seo优化技术是什么
  • 多页网站制作seo关键词排名优化品牌
  • 做编程的网站有哪些内容电商网站入口
  • 做淘宝推广开网站合适四川刚刚发布的最新新闻
  • 微信上的网站怎么做营销渠道
  • 手机网站价格站长之家seo信息
  • 百度seo网站排名陕西seo快速排名
  • 多语言wordpress长春seo排名公司
  • 做企业网站需要购什么深圳百度关键
  • 公司想做一个网站首页怎么做免费建站哪个最好
  • 网站设计师是什么部门品牌seo推广
  • 怎么样百度搜到自己的网站百度云资源搜索平台
  • 百度网站提交优化网站界面的工具