- Jenkins Jobs DSL Official Documentation: https://github.com/jenkinsci/job-dsl-plugin
- Jobs DSL Support for Configuration as a Code Plugin: https://github.com/jenkinsci/job-dsl-plugin/wiki/JCasC
- Configuration as a Code Wiki: https://plugins.jenkins.io/configuration-as-code/
- Configuration as a Code Demos (Sample Code Library): https://github.com/jenkinsci/configuration-as-code-plugin/tree/master/demos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2023-11-22 10:19:12 ERROR - An error occurred in the application: | |
Traceback (most recent call last): | |
File "app.py", line 27, in <module> | |
result = divide(15, 3) | |
File "app.py", line 15, in divide | |
return x / y | |
ZeroDivisionError: division by zero |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: vote-dev | |
namespace: argocd | |
spec: | |
destination: | |
namespace: dev | |
server: https://kubernetes.default.svc | |
project: default |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd bootcamp/jenkins | |
git pull origin main | |
docker-compose build | |
docker-compose up -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose down | |
docker volume rm -af | |
docker-compose build | |
docker-compose up -d | |
docker system prune -af
docker ps -aq | xargs docker rm -f -
docker volume prune --all --force
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Rollout | |
metadata: | |
name: vote | |
labels: | |
role: vote | |
spec: | |
replicas: 4 | |
minReadySeconds: 20 | |
strategy: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: redis | |
labels: | |
app: redis | |
spec: | |
selector: | |
matchLabels: | |
role: master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[database] | |
hostname=devopsdemo.cysgd3hww9vp.us-west-1.rds.amazonaws.com | |
username=root | |
password=password | |
dbname=devopsdb | |
[environment] | |
environment=AWS Bootcamp |