Maven- Maven plugin.mvn clean installsh script.shpython script.py
apt install mavenyum install mavenmaven --helpmvn --help------------------------------node{ stage('Checkout code'){ checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/anujdevopslearn/MavenBuild.git']]])}
}
put this code in between checkout code sectioncheckout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/anujdevopslearn/MavenBuild.git']]])----------------------------------------------node(){ stage('Checkout Code'){ checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/anujdevopslearn/MavenBuild.git']]]) } stage('Build Process'){ sh ''' ls -ltra mvn clean install ''' } stage('Deployment'){ }}
-------------------node(){ def gitURL = "https://github.com/anujdevopslearn/MavenBuild.git" def branchName = "*/master" def mvnGoal = "install" stage('Checkout Code'){ checkout([$class: 'GitSCM', branches: [[name: branchName]], extensions: [], userRemoteConfigs: [[url: gitURL]]]) } stage('Build Process'){ sh ''' ls -ltra mvn clean ${mvnGoal} ''' } stage('Deployment'){ }}
=================================node(){ def gitURL = "https://github.com/anujdevopslearn/SonarQubeNodeJS" def branchName = "*/master" def mvnGoal = "install" stage('Checkout Code'){ checkout([$class: 'GitSCM', branches: [[name: branchName]], extensions: [], userRemoteConfigs: [[url: gitURL]]]) } stage('Build Process'){ sh ''' ls -ltra #mvn clean ${mvnGoal} npm install # node package manager npn run build --if-present npn run test npn run test:e2e # e2e - end to end ''' } stage('Deployment'){ }}
Maven
- Maven plugin.
mvn clean install
sh script.sh
python script.py
apt install maven
yum install maven
maven --help
mvn --help
------------------------------
node{
stage('Checkout code'){
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/anujdevopslearn/MavenBuild.git']]])
}
}
put this code in between checkout code section
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/anujdevopslearn/MavenBuild.git']]])
----------------------------------------------
node(){
stage('Checkout Code'){
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/anujdevopslearn/MavenBuild.git']]])
}
stage('Build Process'){
sh '''
ls -ltra
mvn clean install
'''
}
stage('Deployment'){
}
}
-------------------
node(){
def gitURL = "https://github.com/anujdevopslearn/MavenBuild.git"
def branchName = "*/master"
def mvnGoal = "install"
stage('Checkout Code'){
checkout([$class: 'GitSCM', branches: [[name: branchName]], extensions: [], userRemoteConfigs: [[url: gitURL]]])
}
stage('Build Process'){
sh '''
ls -ltra
mvn clean ${mvnGoal}
'''
}
stage('Deployment'){
}
}
=================================
node(){
def gitURL = "https://github.com/anujdevopslearn/SonarQubeNodeJS"
def branchName = "*/master"
def mvnGoal = "install"
stage('Checkout Code'){
checkout([$class: 'GitSCM', branches: [[name: branchName]], extensions: [], userRemoteConfigs: [[url: gitURL]]])
}
stage('Build Process'){
sh '''
ls -ltra
#mvn clean ${mvnGoal}
npm install # node package manager
npn run build --if-present
npn run test
npn run test:e2e # e2e - end to end
'''
}
stage('Deployment'){
}
}
No comments:
Post a Comment