Jenkins shared library writeFile pom.xml

56 Views Asked by At

Why i can't do this with pom.xml file? Always get error: No such library resource my_pom.xml could be found.

def call() {
  
  def mvnPomXml = libraryResource encoding: 'UTF-8', resource: 'my_pom.xml'
  writeFile file: 'pom.xml', text: mvnPomXml
  }
0

There are 0 best solutions below