Skip to content

Commit

Permalink
ref(17): Add more configuration on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanjerome committed Aug 31, 2023
1 parent 40a16db commit aff6115
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vars/wildPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,15 @@ def call() {
logger.bannerStage(action.name)
container(action.container) {
if (action.pre_script?.trim()) {
logger.info("Processing PRE action script ${action.pre_script}...")
sh "chmod +x ${action.pre_script}"
sh "./${action.pre_script}"
}
logger.info("Processing MAIN action script ${action.script}...")
sh "chmod +x ${action.script}"
sh "./${action.script}"
if (action.post_script?.trim()) {
logger.info("Processing POST action script ${action.post_script}...")
sh "chmod +x ${action.post_script}"
sh "./${action.post_script}"
}
Expand Down

0 comments on commit aff6115

Please sign in to comment.