Re: jenkins pipeline script params not recognized, bad substitution error

2017-07-14 Thread Kai
thanks so much, that worked!

On Tuesday, July 11, 2017 at 2:26:40 AM UTC-7, Jakub Pawlinski wrote:
>
> try using double quote:
>
> sh "python deploy.py ${params.version}"
>
> I think single quotes do not evaluate strings
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0b37a833-0789-4aa2-93f9-58a028109f05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins pipeline script params not recognized, bad substitution error

2017-07-11 Thread Jakub Pawlinski
try using double quote:

sh "python deploy.py ${params.version}"

I think single quotes do not evaluate strings

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ee254c70-8c73-4a77-bf55-4c20e9613cfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins pipeline script params not recognized, bad substitution error

2017-07-10 Thread Kai
I have a similar issue, I have a build job that is parameterized and am Not 
able to successfully use that parameter to pass as an argument to my python 
script in my pipeline stage

On Monday, July 10, 2017 at 2:46:17 PM UTC-7, Justin Khoo wrote:
>
> how can I read in the params from jenkins script shell sh? 
>
> pipeline {
>   stages{
>stage('Deploy') {
> steps {
> sh 'python deploy.py ${params.version}'
> }
> }
>   }
> }
>
> I have tried several ways, but still not able to read in params.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/52bb8118-5eb1-4e43-88d3-f91fff1f6311%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


jenkins pipeline script params not recognized, bad substitution error

2017-07-10 Thread Justin Khoo
how can I read in the params from jenkins script shell sh? 

pipeline {
  stages{
   stage('Deploy') {
steps {
sh 'python deploy.py ${params.version}'
}
}
  }
}

I have tried several ways, but still not able to read in params.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/79457e00-4858-4fb5-825d-91e3a2976e13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.