Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions vars/fcosBuild.groovy
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Build FCOS, possibly with modifications.
// Available parameters:
// make: boolean -- run `make && make install DESTDIR=...`
// skipInit: boolean -- assume `cosa init` has already been run
// makeDirs: []string -- extra list of directories from which to `make && make install DESTDIR=...`
// skipKola: boolean -- don't automatically run kola on resulting build
// overlays: []string -- list of directories to overlay
// extraArgs: string -- extra arguments to pass to `cosa build`
// make: boolean -- run `make && make install DESTDIR=...`
// skipInit: boolean -- assume `cosa init` has already been run
// makeDirs: []string -- extra list of directories from which to `make && make install DESTDIR=...`
// skipKola: boolean -- don't automatically run kola on resulting build
// overlays: []string -- list of directories to overlay
// extraFetchArgs: string -- extra arguments to pass to `cosa fetch`
// extraArgs: string -- extra arguments to pass to `cosa build`
def call(params = [:]) {
stage("Build FCOS") {
shwrap("mkdir -p /srv/fcos")
Expand All @@ -29,7 +30,8 @@ def call(params = [:]) {
}
}

shwrap("cd /srv/fcos && cosa fetch --strict")
def extraFetchArgs = params.get('extraFetchArgs', "");
shwrap("cd /srv/fcos && cosa fetch --strict ${extraFetchArgs}")

def extraArgs = params.get('extraArgs', "");
shwrap("cd /srv/fcos && cosa build --strict ${extraArgs}")
Expand Down