小编Jai*_* R.的帖子

Gitlab-ci-token用户无法克隆存储库

我正在尝试设置一个docker runner并成功注册了gitlab-ce的跑步者.但是,当作业运行时,它始终会失败并显示以下内容:

Running with gitlab-ci-multi-runner 1.10.2 (d171b73)
Using Docker executor with image python:3.4 ...
Starting service postgres:latest ...
Pulling docker image postgres:latest ...
Waiting for services to be up and running...
Pulling docker image python:3.4 ...
Running on runner-b35ff618-project-96-concurrent-0 via toucan...
Cloning repository...
Cloning into '/builds/amrstratus/webportal'...
fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.xxxxxxxxx/amrstratus/webportal.git/': Failed to connect to gitlab.xxxxxx port 443: Connection refused
ERROR: Build failed: exit code 1
Run Code Online (Sandbox Code Playgroud)

我试图简单地克隆存储库并得到类似的错误:

root@toucan:/tmp# git clone https://gitlab-ci-token:b35ff618453c702944c736668e1c2c@gitlab.xxxxxxxx/amrstratus/webportal.git/
Cloning into 'webportal'...
remote: HTTP Basic: Access denied
fatal: …
Run Code Online (Sandbox Code Playgroud)

gitlab gitlab-ci-runner

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

使用Fieldsets时在ZF2中填充表单数据

我目前正在使用ZF2 beta 4,当我尝试在表单中使用字段集并在提交表单时将数据恢复到表单中时,我似乎陷入困境.我不确定我是否没有为字段集设置输入过滤器,或者我错过了什么.例如,我有以下内容(简化为明确):

调节器

public function indexAction(){
   $form = new MyForm();
   $request = $this->getRequest();
          if ($request->isPost()) {
                 $form->setData($request->post());
                 if ($form->isValid()) {
                        //Do something
                        print_r($form->getData()); //for debug
                 }
          }
   return array('form' => $form);
}
Run Code Online (Sandbox Code Playgroud)

MyForm.php

class MyForm extends Form
{
    public function __construct()
    {
        parent::__construct();
        $this->setName('myForm');
        $this->setAttribute('method', 'post');

        $this->add(array(
                    'name' => 'title',
                    'attributes' => array(
                    'type'  => 'text',
                    'label' => 'Title',
                    ),
                 ));

        $this->add(new MyFieldset('myfieldset'));

        //setting InputFilters here
        $inputFilter = new InputFilter();
        $factory = new InputFactory();

        $inputFilter->add($factory->createInput(array(
            'name'     => 'title',
            'required' …
Run Code Online (Sandbox Code Playgroud)

zend-form zend-framework2

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