I'm trying to access each data from the json, for example, echo responde.text. This is the code
stage("Using curl example") {
steps {
script {
final String url = "http://devrest01.ydilo.es:8080/yoigooq/text?text=hola"
final response = sh(script: "curl -s $url", returnStdout: true)
echo response
//Here i want to access an specific data from the json
}
}
}