小编dav*_*lla的帖子

Jenkins和Gitlab:Webhook没有运行

我有几台服务器:

  1. 詹金斯
  2. Gitlab

在gitlab上,我有一个webhook:

On Push events -> http://{jenkinsIP}:8080/gitlab/build_now
Run Code Online (Sandbox Code Playgroud)

詹金斯,我有一份工作:

源代码管理:

Git的方法:

Repository URL : git@{GitlabIP}:{Gitlabgroup}/{project}.git (copy from gitlab)
Run Code Online (Sandbox Code Playgroud)

凭证:密钥对工作

要建立的分支:*/master

存储库浏览器:gitlab

url: http://{GitlabIP}/{Gitlabgroup}/{project}
Run Code Online (Sandbox Code Playgroud)

版本:6.5.1

民意调查SCM

Schedule H/1 * * * *
Run Code Online (Sandbox Code Playgroud)

任何线索,为什么詹金斯没有运作这项工作?

git continuous-integration jenkins gitlab

10
推荐指数
1
解决办法
2万
查看次数

添加标题到fragmentlist android

我正在向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)

android header android-listfragment

5
推荐指数
1
解决办法
1822
查看次数

HTML5桌面通知

我正在处理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不起作用,如果我评论最后的那些,可行.有人知道我能做到这一点

html5 notifications

2
推荐指数
1
解决办法
2372
查看次数