Chef Integration with Jenkins

后端 未结 2 1713
無奈伤痛
無奈伤痛 2021-02-11 02:08

I am trying to integrate chef with Jenkins.

My scenario is, I have created few recipes in Chef and want to execute the chef run list through Jenkins. I have installed ch

2条回答
  •  感情败类
    2021-02-11 02:41

    "Host key verification failed error" is quite clear, your jenkins host do not know the target server.

    on your jenkins host (as jenkins user) run ssh-keyscan target_host > ~/.ssh/known_hosts and then retry and it should work as expected.

    Edit: the keyscan could be a task in jenkins itself. For the path I assumed you were running jenkins on a linux box, adapt to jenkins user home path if needed or use %HOME% in place of ~

提交回复
热议问题