The feature is currently not released yet and will be in preview for the next week or two. The steps to add
jenkins-std-lib to your Jenkins can be found here. Now you can test the Path feature by declaring in your pipeline:
The Path class allows you to do the following:
- Create files/directories
- Rename files/directories
- Move files/directories
- Copy files/directories
- Read/Modify files/directories permissions
- Delete files
- Delete directories, there contents or both
- Create tar/zips of files/directories
- Unzip/untar files
- Read/Write files
- Create temporary directories
- Create temporary files
- Get free, total and usable disk space.
Checkout the example job here, which demonstrates most of the features. Hosted javadoc documentation will be available when it’s released but can be built locally if you want it.
If you are using the vscode IDE, then I highly recommend my Jenkins Extension Pack which gives you auto completion and javadoc comments directly in your IDE.