title: Jenkins Groovy - using modified data from readYaml to write back into yml file
body: <p>I am using Jenkins readYaml to read the data as follows: </p>
  
  <pre><code>data = readYaml file: "test.yml"
  //modify
  data.info = "b"
  </code></pre>
  
  <p>I want to write this modified data back to test.yml in Jenkins. How can this be achieved? </p>