Skip to content

Commit

Permalink
Build the argoexec image (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtartler-blp authored and Alan Clucas committed Nov 22, 2024
1 parent 2434fd8 commit 57e7af6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
Empty file modified .github/setup-spaces.sh
100644 → 100755
Empty file.
28 changes: 23 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ node(agent_label) {

def infoAgent = j.agent("generic.JaazyFileInfoAgent")

def dockerAgent = j.agent("generic.DockerAgent", "workflow-controller")
// WORKFLOW CONTROLLER
def workflow_controller = j.agent("generic.DockerAgent", "workflow-controller")
.setDefaultNamespace("workflow-runtimes")
.setDockerRegistryCredential("dsbuild-artifactory-jwt")
.inside(buildEnv)
Expand All @@ -31,9 +32,26 @@ node(agent_label) {
.addBuildFlags(["--target workflow-controller"])


def workflow = j.workflow("SimpleFlow") // Probably should give this a better variable name
// ARGOEXEC
def argoexec = j.agent("generic.DockerAgent", "argoexec")
.setDefaultNamespace("workflow-runtimes")
.setDockerRegistryCredential("dsbuild-artifactory-jwt")
.inside(buildEnv)
.setSanitizeNameClosure({ rawName -> return "argoexec" })
.addBuildVariables([
"GIT_COMMIT": "${GIT_COMMIT}",
"GIT_TREE_STATE": "JaaS-clean",
"GIT_TAG": "untagged",
"VERSION": infoAgent.getVersion(),
])
.addBuildFlags(["--target argoexec"])

j.workflow("SimpleFlow")
.infoUsing(infoAgent)
.buildUsing(dockerAgent)
.publishUsing(dockerAgent)
.start() // Needed to actually start the workflow
.buildUsingParallel([workflow_controller, argoexec])
.publishUsing(workflow_controller)
.publishUsing(argoexec)
.start()


}

0 comments on commit 57e7af6

Please sign in to comment.