Problems to access Parameters of Job

Hi people. I create a parameterized job and I want to access the value of parameter, but I get the following error:

My job parameterized:

  1. My JenkinsFile
    image

  2. My call
    image

  3. My Pipeline.groovy

  4. My PipelineDevelop.groovy

Can anyone help me?

steps.sh "echo ${steps.params.ambiente}"

Hi @mawinter69.
I tried this, but I got the same error:

I don’t know what might be missing.

I need to import some package?

the way I have it is
Jenkinsfile

callPipeline(this)

var/callPipeline.groovy

def call(Object script) {
  def first = new Pipeline(script)
  first.run()
}

src/…/Pipeline.groovy

public class Pipeline implements Serializable {
  def Pipeline(script) {
  this.script = script
  }

  def run() {
    script.sh "echo ${script.params.paramname}"
  }
}

This is exactly as explained here: Extending with Shared Libraries

Hi @mawinter69.

I understand what was my wrong.
Ex: callPipeline(this).

Thanks again.