In Jenkins we will be able to read the values from different format of files like , yaml, Json, property files. I want to understand how do we read from varies files.
Along with that i want to understand how do we read pom attributes for example
artifactid = readMavenPom().getArtifactId()
and store the output into variable and access throughout the pipeline.
I know its 2 different question but the final out come is we are reading and storing the values in a variable.
Thanks in advance.