Skip to content

pj2/JENKINS-27413-workaround-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

JENKINS-27413 workaround library

This pipeline library contains a workaround for Jenkins issue JENKINS-27413. It provides a new step unstashParam that saves file parameter to a workspace.

Configuration

See Jenkins User Handbook, chapter Extending with Shared Libraries on how to configure pipeline libraries.

Usage

In a pipeline script:

library "JENKINS-27413-workaround-library"
node {
   def file_in_workspace = unstashParam "file"
   sh "cat ${file_in_workspace}"
}

The above assumes the Jenkins job has a file build parameter named file.

License

This library is MIT licensed. See license.txt for details.