Skip to content

Commit

Permalink
also build argocli image (argoproj#17)
Browse files Browse the repository at this point in the history
Also set correct version numbers on built images
  • Loading branch information
rtartler-blp authored and Alan Clucas committed Nov 25, 2024
1 parent 807b87f commit 4d1489c
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ node(agent_label) {
.setSanitizeNameClosure({ rawName -> return "workflow-controller" })
.addBuildVariables([
"GIT_COMMIT": "${GIT_COMMIT}",
"GIT_TREE_STATE": "JaaS-clean",
"GIT_TAG": "untagged",
"GIT_TREE_STATE": "clean",
"GIT_TAG": infoAgent.getVersion(),
"VERSION": infoAgent.getVersion(),
])
.addBuildFlags(["--target workflow-controller"])
Expand All @@ -45,8 +45,8 @@ node(agent_label) {
.setSanitizeNameClosure({ rawName -> return "argoexec" })
.addBuildVariables([
"GIT_COMMIT": "${GIT_COMMIT}",
"GIT_TREE_STATE": "JaaS-clean",
"GIT_TAG": "untagged",
"GIT_TREE_STATE": "clean",
"GIT_TAG": infoAgent.getVersion(),
"VERSION": infoAgent.getVersion(),
])
.addBuildFlags(["--target argoexec"])
Expand All @@ -59,21 +59,39 @@ node(agent_label) {
.setSanitizeNameClosure({ rawName -> return "argoui" })
.addBuildVariables([
"GIT_COMMIT": "${GIT_COMMIT}",
"GIT_TREE_STATE": "JaaS-clean",
"GIT_TAG": "untagged",
"GIT_TREE_STATE": "clean",
"GIT_TAG": infoAgent.getVersion(),
"VERSION": infoAgent.getVersion(),
"HTTP_PROXY": "http://devproxy.bloomberg.com:82",
"HTTPS_PROXY": "http://devproxy.bloomberg.com:82",
"NO_PROXY": ".bloomberg.com",
])
.addBuildFlags(["--secret id=GIT_PASSWORD,env=GIT_PASSWORD", "--target argo-ui"])

// most curiously, the server is embedded into the argocli, and started via `argo server`
def argocli = j.agent("generic.DockerAgent", "argocli")
.setDefaultNamespace("workflow-runtimes")
.setDockerRegistryCredential("dsbuild-artifactory-jwt")
.inside(buildEnv)
.setSanitizeNameClosure({ rawName -> return "argocli" })
.addBuildVariables([
"GIT_COMMIT": "${GIT_COMMIT}",
"GIT_TREE_STATE": "clean",
"GIT_TAG": infoAgent.getVersion(),
"VERSION": infoAgent.getVersion(),
"HTTP_PROXY": "http://devproxy.bloomberg.com:82",
"HTTPS_PROXY": "http://devproxy.bloomberg.com:82",
"NO_PROXY": ".bloomberg.com",
])
.addBuildFlags(["--secret id=GIT_PASSWORD,env=GIT_PASSWORD", "--target argocli"])

j.workflow("SimpleFlow")
.infoUsing(infoAgent)
.buildUsingParallel([workflow_controller, argoexec, argoui])
.buildUsingParallel([workflow_controller, argoexec, argoui, argocli])
.publishUsing(workflow_controller)
.publishUsing(argoexec)
.publishUsing(argoui)
.publishUsing(argocli)
.start()


Expand Down

0 comments on commit 4d1489c

Please sign in to comment.