Compare commits
2 Commits
64c9957991
...
f422aa9d64
Author | SHA1 | Date |
---|---|---|
svkalinin | f422aa9d64 | |
svkalinin | c7fb966326 |
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: default
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build DEB
|
||||
commands:
|
||||
- cd debian
|
||||
- ./build-deb-projman.sh
|
||||
|
||||
- name: build RPM
|
||||
commands:
|
||||
- cd redhat
|
||||
- ./build-rpm.sh
|
||||
|
|
@ -141,6 +141,10 @@ proc ReadFilesFromDirectory {directory root {type ""}} {
|
|||
while {[gets $f line] >= 0} {
|
||||
if [regexp -nocase -all -- {^\s*inventory\s*=\s*(\.\/|)(.+?)$} $line match v1 fileName] {
|
||||
# puts "Inventory file is a: $line"
|
||||
if ![file exists [file join $root $directory $fileName]] {
|
||||
ShowMessage "Error in ansible.cfg" "Inventory File '[file join $root $directory $fileName]' does not exists"
|
||||
continue
|
||||
}
|
||||
if {[lsearch $project($root) [file join $root $directory $fileName]] eq "-1"} {
|
||||
lappend project($root) [file join $root $directory $fileName]
|
||||
set variables([file join $root $directory $fileName]) \
|
||||
|
|
Loading…
Reference in New Issue