How to running pipeline on jenkins
Try to learning pipeline on jenkins with pipeline on groovy
Getting started
docker-compose up -d
- To start docker-container of jenkins
Note: make sure that jenkins_home folder has been created correctly
- Find secret and register at jenkins at
http://localhost:8077
from/var/jenkins_home/secrets/initialAdminPassword
- Install plugins
- Register admin
Start pipeline
- Install pipeline by go to
Manage jenkins > Manage plugin > Available
then search pipeline to install - Start to create pipeline
- Create groovy script then save
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building ...'
}
}
stage('Test') {
steps {
echo 'Test ...'
}
}
stage('Deploy') {
steps {
echo 'Deploy ...'
}
}
}
}
- Go to job console and click
build now
... Check the result