Q2 - Ronak-Ronu/73772127142-Devops-Assignment-1 GitHub Wiki
A Pipeline project with the following details using Jenkins.
Running jenkins in ubuntu
sudo systemctl start jenkins
Checking status of jenkins.
sudo systemctl status jenkins
- visit http://localhost:8080/ to sign in.
Create a New Pipeline Project
Click on "New Item" and select pipeline
Pipeline script
In the pipeline configuration, select "Pipeline script" and write a script.
pipeline {
agent any
stages {
stage('Student Details stage') {
steps {
script {
def registerNumber = '73772127142'
def name = 'Ronak Suthar B'
def department = 'Computer Science and Business System'
def year = 'Pre-Final Year'
def specialization = 'Python | Full-Stack Development'
echo "Register Number: ${registerNumber}"
echo "Name: ${name}"
echo "Department: ${department}"
echo "Year: ${year}"
echo "Area of Specialization: ${specialization}"
}
}
}
}
}
Save the Pipeline
Save your pipeline configuration.
Run the Pipeline
Click on "Build Now" to run the pipeline.
The Output
click on the build number to view the console output.