Quick Start with Jenkins
Follow this hands-on guide to set up a robust CI/CD for Terraform pipeline using Jenkins and IaCConsole. Automate your infrastructure deployments with our step-by-step guide.
Step 1: Deploy to Kubernetes
Clone the repository and navigate to the examples directory:
git clone https://github.com/IaCConsole/iacconsole-cli
cd iacconsole-cli/examples/jenkins
Execute the deployment script:
bash deploy.sh
Get the password for the Jenkins admin user:
kubectl exec --namespace jenkins -it svc/jenkins-dev -c jenkins -- /bin/cat /run/secrets/additional/chart-admin-password && echo
Start port-forwarding to access the Jenkins UI:
kubectl port-forward --namespace jenkins svc/jenkins-dev 8080:8080
Step 2: Log in to Jenkins
Navigate to http://127.0.0.1:8080.
Log in with the username admin and the password from step 1.
Step 3: Go to the iacconsole-pipeline job page
Go to http://127.0.0.1:8080/job/iacconsole-pipeline/.
Step 4: Build
On the left menu, click on Build. This will download and execute the Jenkinsfile from the repository.
Step 5: Check build console output
Build #1 should start. Click on the build link to open the console output: http://127.0.0.1:8080/job/iacconsole-pipeline/1/console.
Step 6: Review plan output
Scroll to the end of the console output. You should see a plan output from OpenTofu and a question: “Do you want to apply the changes?”.
Step 7: Proceed and apply
Click Proceed to see the apply stage in action. The configuration is sourced from the IaCConsole API (CMDB). You can explore it in the Demo Console.
Frequently asked questions
Can I use IaCConsole with Jenkins?
Yes, we provide a ready-to-use example and a deployment script for Jenkins on Kubernetes.
How does Jenkins get the configuration?
It uses the IaCConsole CLI or API to source environment-specific data from the CMDB.
Does it support manual approvals?
Yes, the pipeline can pause for review before applying changes, even in a CI/CD environment.