I got i straight from the pipeline syntax page (and some online example)
and i dont get syntax errors
Il giorno giovedì 18 gennaio 2018 17:53:41 UTC+1, Björn Pedersen ha scritto:
>
> Hi,
>
> I have no experience with declarative pipelines,
> but configFileProvider is a standalone step , not taking a body like you
> use it (it's not a withConfigFile...)
>
> try:
>
> echo "Getting version for ${env.projectDir}"
> configFileProvider([configFile(fileId:
> '52c08128-fa6f-4c79-8a43-ff4f6dd13dbd', variable: 'MYSCRIPT')])
> powershell script: "${MYSCRIPT} -projecDir
> ${env.projectDir}"
> script { res = powershell script: "${MYSCRIPT} -projecDir
> ${env.projectDir}"
> echo "results: ${res}"
> }
>
>
>
>
> Björn
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e16abc89-8577-41be-8a52-2f9149563694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.