我有几台服务器:
在gitlab上,我有一个webhook:
On Push events -> http://{jenkinsIP}:8080/gitlab/build_now
Run Code Online (Sandbox Code Playgroud)
詹金斯,我有一份工作:
源代码管理:
Git的方法:
Run Code Online (Sandbox Code Playgroud)Repository URL : git@{GitlabIP}:{Gitlabgroup}/{project}.git (copy from gitlab)凭证:密钥对工作
要建立的分支:*/master
存储库浏览器:gitlab
Run Code Online (Sandbox Code Playgroud)url: http://{GitlabIP}/{Gitlabgroup}/{project}版本:6.5.1
民意调查SCM
Run Code Online (Sandbox Code Playgroud)Schedule H/1 * * * *
任何线索,为什么詹金斯没有运作这项工作?
我正在向ListFragment添加标题,但标题不会出现.我尝试添加onCreate和onStart,但我已经设置了我的适配器.我在这里找到了在ListFragment中添加Header视图的最佳位置,但它无效.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = getActivity().getLayoutInflater().inflate(R.layout.header,
null);
container.addView(v,0);
rla = new RowListAdapter(getActivity().getLayoutInflater(),
R.layout.itemlayout, rl);
setListAdapter(rla);
return super.onCreateView(inflater, container, savedInstanceState);
}
@Override
public void onStart() {
super.onStart();
getListView().setBackgroundResource(R.color.tostadoclaro);
getListView()
.setDivider(getResources().getDrawable(R.drawable.divider));
getListView().setDividerHeight(4);
}
Run Code Online (Sandbox Code Playgroud)
解!!!
@Override
public void onActivityCreated(Bundle savedInstanceState) {
View v = getActivity().getLayoutInflater().inflate(R.layout.header,
null);
this.getListView().addHeaderView(v);
rla = new RowListAdapter(getActivity().getLayoutInflater(),
R.layout.itemlayout, rl);
setListAdapter(rla);
super.onActivityCreated(savedInstanceState);
}
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState){// Empty. Use original.}
Run Code Online (Sandbox Code Playgroud) 我正在处理HTML5上的桌面通知.我的问题出在Firefox上(在Chrome上很好),在那里我不能丢掉超过1个通知.
//Requestion permissions blablabla
if (permission === "granted") {
var notification = new Notification(id, opt, null);
var notification2 = new Notification(id, opt, null);
var notification3 = new Notification(id, opt, null);
}
Run Code Online (Sandbox Code Playgroud)
这对Firefox不起作用,如果我评论最后的那些,可行.有人知道我能做到这一点