Jenkins pipeline

TO-DO list for setting-up Datree in your CI
- Get your account token
- Set DATREE_TOKEN as an environment variable
- Add datree to your CI script
CI config example
pipeline{
agent any
stages{
stage('indentifying misconfigs using datree'){
steps{
script{
withEnv(['DATREE_TOKEN=<your-account-token>']) {
sh 'datree test *.yaml --only-k8s-files'
}
}
}
}
}
}