Skip to content

Commit

Permalink
ref(15): Start testing wild integration with Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanjerome committed Aug 26, 2023
1 parent 4886aef commit d3ab273
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/workflow.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
#@desc Workflow definition functions for bash scripts

set -euo pipefail
Expand Down
8 changes: 6 additions & 2 deletions vars/wildPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,15 @@ def call() {
def names_containers_run = []
container('bash') {
sh "chmod +x ${wild_path}/src/lib/workflow.sh"
sh "source ${wild_path}/src/lib/workflow.sh"
names_containers_run = sh(
script: 'bash workflow_get_workflows_containers_names ${wild_path}/test/config/workflow-default.json',
script: '''
#!/bin/bash
source ${wild_path}/src/lib/workflow.sh
workflow_get_workflows_containers_names ${wild_path}/test/config/workflow-default.json
''',
returnStdout: true)
}
logger.info("workflow executed!")
def config_containers_run = containerConfig.getContainerConfig(config_containers, names_containers_run)
k8s_containers_run = containerConfig.generateContainerTemplate(config_containers_run)

Expand Down

0 comments on commit d3ab273

Please sign in to comment.