mirror of https://github.com/waku-org/nwaku.git
ci(jenkins): support experimental flag in the pr and release pipelines
This commit is contained in:
parent
3a4c4c660b
commit
35c89ed176
|
@ -4,7 +4,7 @@ FROM alpine:edge AS nim-build
|
||||||
|
|
||||||
ARG NIMFLAGS
|
ARG NIMFLAGS
|
||||||
ARG MAKE_TARGET=wakunode2
|
ARG MAKE_TARGET=wakunode2
|
||||||
ARG EXPERIMENTAL=true
|
ARG EXPERIMENTAL=false
|
||||||
|
|
||||||
# Get build tools and required header files
|
# Get build tools and required header files
|
||||||
RUN apk add --no-cache bash git cargo build-base pcre-dev linux-headers
|
RUN apk add --no-cache bash git cargo build-base pcre-dev linux-headers
|
||||||
|
|
|
@ -29,6 +29,11 @@ pipeline {
|
||||||
description: 'Makefile flags.',
|
description: 'Makefile flags.',
|
||||||
defaultValue: params.MAKEFLAGS ?: '-j6'
|
defaultValue: params.MAKEFLAGS ?: '-j6'
|
||||||
)
|
)
|
||||||
|
booleanParam(
|
||||||
|
name: 'EXPERIMENTAL',
|
||||||
|
description: 'Enable experimental features.',
|
||||||
|
defaultValue: false
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -68,7 +73,7 @@ pipeline {
|
||||||
stage('V2') {
|
stage('V2') {
|
||||||
when { expression { v2changed } }
|
when { expression { v2changed } }
|
||||||
steps { script {
|
steps { script {
|
||||||
nix.shell("make ${params.MAKEFLAGS} NIMFLAGS=\"${params.NIMFLAGS}\" V=${params.VERBOSITY} v2")
|
nix.shell("make ${params.MAKEFLAGS} NIMFLAGS=\"${params.NIMFLAGS}\" V=${params.VERBOSITY} EXPERIMENTAL=${params.EXPERIMENTAL} v2")
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +90,7 @@ pipeline {
|
||||||
stage('V2') {
|
stage('V2') {
|
||||||
when { expression { v2changed } }
|
when { expression { v2changed } }
|
||||||
steps { script {
|
steps { script {
|
||||||
nix.shell("make ${params.MAKEFLAGS} NIMFLAGS=\"${params.NIMFLAGS}\" V=${params.VERBOSITY} test2")
|
nix.shell("make ${params.MAKEFLAGS} NIMFLAGS=\"${params.NIMFLAGS}\" V=${params.VERBOSITY} EXPERIMENTAL=${params.EXPERIMENTAL} test2")
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,11 @@ pipeline {
|
||||||
'-d:insecure',
|
'-d:insecure',
|
||||||
].join(' ')
|
].join(' ')
|
||||||
)
|
)
|
||||||
|
booleanParam(
|
||||||
|
name: 'EXPERIMENTAL',
|
||||||
|
description: 'Enable experimental features.',
|
||||||
|
defaultValue: false
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
@ -45,7 +50,8 @@ pipeline {
|
||||||
"${params.IMAGE_NAME}:${env.GIT_COMMIT.take(8)}",
|
"${params.IMAGE_NAME}:${env.GIT_COMMIT.take(8)}",
|
||||||
"--label=commit='${env.GIT_COMMIT.take(8)}' " +
|
"--label=commit='${env.GIT_COMMIT.take(8)}' " +
|
||||||
"--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " +
|
"--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " +
|
||||||
"--build-arg=NIMFLAGS='${params.NIMFLAGS}' ."
|
"--build-arg=NIMFLAGS='${params.NIMFLAGS}' " +
|
||||||
|
"--build-arg=EXPERIMENTAL='${params.EXPERIMENTAL}' ."
|
||||||
)
|
)
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue