Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
pipeline {
agent {
label 'tomcat-slave'
}
stages {
stage('Git checkout') {
steps {
git 'https://github.com/prem-opqtech/java_repo1.git'
}
}
stage('Build stage') {
steps {
sh 'mvn clean install'}
}
stage('Push to Artifactory') {
steps {
sleep 15}
}
stage('Deploy') {
steps { sh '''sudo cp /home/ec2-user/jenkins-slave1/workspace/cicd1/target/*.war /opt/apache-tomcat-9.0.64/webapps
'''
}
}


}
}
1 change: 1 addition & 0 deletions file1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
to test poll scm trigger
4 changes: 3 additions & 1 deletion test
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
THis is to test POLL SCM Trigger
Test line
new line
webhook activated