Skip to content

Latest commit

 

History

History

jenkins-agent-argocd

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Jenkins ArgoCD Agent

This agent extends the base jenkins agent image and adds the argocd binary. We can use this agent image in a Jenkins pipeline to perform gitops actions and scaffold argocd projects.

Agent also includes yq for yaml manipulation. Ex use

cat << EOF | yq w - 'my_app.version' newest
---
my_app:
  version: latest
EOF

Build in OpenShift

oc process -f ../../.openshift/templates/jenkins-agent-generic-template.yml \
    -p NAME=jenkins-agent-argocd \
    -p SOURCE_CONTEXT_DIR=jenkins-agents/jenkins-agent-argocd \
    -p DOCKERFILE_PATH=Dockerfile \
    | oc create -n openshift -f -

For all params see the list in the ../../.openshift/templates/jenkins-agent-generic-template.yml or run oc process --parameters -f ../../.openshift/templates/jenkins-agent-generic-template.yml.