Skip to content

Trayani/jenkinsci-unstashParam-library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Jenkins unstashParam 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 "jenkinsci-unstashParam-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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%