/su-301

Primary LanguageShell

Pre requisites

  1. Fork this github repository
  2. Generate a Github personnal access token with the following permissions
  3. git clone the forked repo on your workstation
  4. Export the following environment variables
export JPD_URL=https://swampup301.jfrog.io 
export ADMIN_USER=yannc@jfrog.com 
export ADMIN_PASS=guestwhatitis 
  1. Execute init script to generate the Artifactory repositories
env_init/init.sh 

Lab 1

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

Lab 2

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

Lab 3

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

K8S

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 :)

VM

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 :)