Update jenkins playbook to clean before deploy
This commit is contained in:
parent
176710dc83
commit
e916fad549
1 changed files with 6 additions and 0 deletions
|
@ -86,6 +86,12 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: make sure jenkins is stopped
|
||||||
|
action: service name=jenkins state=stopped
|
||||||
|
|
||||||
|
- name: clean any previous plugin deployments
|
||||||
|
action: file state=absent path=/var/lib/jenkins/plugins
|
||||||
|
|
||||||
- name: mkdir dir for jenkins data
|
- name: mkdir dir for jenkins data
|
||||||
action: file state=directory path=/var/lib/jenkins/plugins/ owner=jenkins group=jenkins
|
action: file state=directory path=/var/lib/jenkins/plugins/ owner=jenkins group=jenkins
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue