- Fork this github repository
- Generate a Github personnal access token with the following permissions
git clone
the forked repo on your workstation- Export the following environment variables
export JPD_URL=https://swampup301.jfrog.io
export ADMIN_USER=yannc@jfrog.com
export ADMIN_PASS=guestwhatitis
- Execute init script to generate the Artifactory repositories
env_init/init.sh
Create the following Pipelines integrations :
- Github and name it
my_github
- Artifactory and name it
artifactory_eu
Load the pipeline source of your choice :
- java :
lab1\/java\/pipelines.*\.yml
- python :
lab1\/python\/pipelines.*\.yml
Run the pipeline ... and fix it :P
Extra :
- Have a look to the pipeline you didn't choose
NOTE : this WILL NOT rely on your previous pipeline and you will start with a clean and working pipeline
Modify your pipeline source accordingly :
- java :
lab2\/java\/pipelines.*\.yml
- python :
lab2\/python\/pipelines.*\.yml
Run the pipeline and fix it :P
Hint for troubleshooting : you may need another integration ...
Note : We could have merged the 2 pipelines by using a Multi stage docker file. However you would have missed the basics of JFrog pipelines :)
Extra :
- Have a look to the pipeline you didn't choose (Filespec)
- Run the pipeline multiple times
this WILL NOT rely on your previous pipeline and you will start with a clean and working pipeline
Choose your deployment pipeline : K8S or VM
Update the input parameters with your environment info
Create Jenkins user in Artifactory
Create the following Pipelines integrations :
- K8S (with the provided Kubeconfig)
- IncomingWebhook
Modify your pipeline source accordingly : lab3\/cd\/k8s\/.*\.yml
Extra :
- Run the other pipeline :)
Create the following Pipelines integrations :
- SSH key (with the provided key pair)
- IncomingWebhook
Modify your pipeline source accordingly : lab3\/cd\/vm\/pipelines.*\.yaml
Extra :
- Run the other pipeline :)