I am trying to take user input through Jenkinsfile but I can't use that in the shell. Here is the code:

```
def userInput =  timeout(time:60, unit:'SECONDS') {input(
     id: 'userInput', message: 'URL Required', parameters: [
     [$class: 'TextParameterDefinition', defaultValue: '', description: 'URL', name: 'url'],
    ])
  }

node{
        echo "Env jsfsjaffwef:"+userInput) //this works
        echo "${userInput}" //but this does not
        sh '''
          python test.py ${userInput}
        '''
}

```