我为新的Jenkins Workflow插件创建了一个groovy脚本,https://github.com/jenkinsci/workflow-plugin.我希望它在下一步需要输入时向发起作业的用户发送邮件.我试图搜索API但我找不到任何有关获取用户电子邮件地址的信息.
我会想到这样的事情.
import hudson.model.User
def user = User.current()
def mailAddress = user.getMailAddress()
Run Code Online (Sandbox Code Playgroud)
有没有办法在groovy中获取当前Jenkins用户的地址?
我尝试在OS-X Server 10.8.5上安装Gitlab 5.2.我按照以下程序文件:" http://thoughtpointers.net/2013/05/23/installing-gitlab-v52-on-os-x/ ".
在标题为"配置GitLab"的文档部分中,他们要求编辑文件"gitlab.yml"并使用服务于Gitlab的主机的"完全限定域名"更改"gitlab.example.com".
我不明白我需要改变什么..
1.我需要用"localhost"更改"host:gitlab.example.com"吗?或者"server.local =>我在键入"hostname"时得到的内容)?
2.什么是"gitlab.example.com"?在我的计算机上下载和安装的东西(所以在哪里?)?什么取代它?
我认为当我在浏览器上输入地址时:
"http://fully qualified domain name"