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.
Clone the repository and navigate to the examples directory:
git clone https://github.com/alt-dima/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
Navigate to http://127.0.0.1:8080.
Log in with the username `admin` and the password from step 1.
On the left menu, click on Build. This will download and execute the `Jenkinsfile` from the repository.
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.

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?".

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.

