2016-01-12 20 views
1

drone.yml文件很簡單:雄蜂SSH插件不會觸發

build: 
    image: node 
    commands: 
     - echo $${BRANCH} 
deploy: 
    ssh: 
     host: my-domain 
     user: admin 
     port: 22 
     commands: 
      - touch /home/admin/testdrone 

但在輸出它好像ssh plugin是從來沒有拉:

[info] Pulling image plugins/drone-git:latest 
$ git init 
Initialized empty Git repository in /drone/src/github.com/.../.git/ 
$ git remote add origin https://github.com/....git 
$ git fetch --no-tags --depth=50 origin +refs/pull/782/merge: 
From https://github.com/... 
* branch   refs/pull/782/merge -> FETCH_HEAD 
$ git checkout -qf FETCH_HEAD 
$ echo drone-deploy 
drone-deploy 

我怎麼能調查什麼錯?

回答

1

原來,只有在鉤子是而非拉取請求時才執行部署步驟。那是我的設置