【Jenkins】Jenkinsfile
pipeline {
agent any
stages{
stage('Init'){
steps {
echo "Testing......"
}
}
stage('Build'){
steps {
echo "Building......"
}
}
stage('Deploy'){
steps {
echo "Code Deployed."
}
}
}
}
pipeline {
agent any
tools{
maven 'local maven'
}
stages{
stage ('build'){
steps{
sh 'mvn clean package'
}
}
}
}