Skip to content

Commit

Permalink
add new step
Browse files Browse the repository at this point in the history
  • Loading branch information
darinpope committed Nov 17, 2020
1 parent 2fa16e9 commit 8643d82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/test.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
foo=bar
5 changes: 5 additions & 0 deletions vars/getPropertyValueFromResources.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def call(Map config=[:]) {
def fileContents = libraryResource config.fileName
def props = readProperties(text:fileContents)
return props[config.key]
}

0 comments on commit 8643d82

Please sign in to comment.