Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @NonCPS
- def nonCpsTest() {
- def list = [
- ['CreationDate': '200'],
- ['CreationDate': '300'],
- ['CreationDate': '100'],
- ]
- def rval = list.sort true, { it['CreationDate'] }
- echo "Rval=$rval"
- echo "List=$list"
- }
- pipeline {
- agent any
- stages {
- stage('default'){
- steps {
- script {
- nonCpsTest()
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement