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.

1
Deploy to Kubernetes

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

3
Go to the iacconsole-pipeline job page
4
Build

On the left menu, click on Build. This will download and execute the `Jenkinsfile` from the repository.

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.

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

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.