diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..1ba9e6b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + stages { + stage('Git checkout') { + steps { + echo 'We are now checking out the git repository' + git 'https://github.com/rohith-marigowda/javaProject.git' + } + } + stage('masterBranch') { + when { + branch "master" + } + steps { + echo 'Trigger the test cases when code is pushed to master branch' + } + } + stage('releaseBranch') { + when { + branch "release/*" + } + steps { + echo 'Trigger the test cases when code is pushed to release branch' + } + } + } +} diff --git a/test b/test index 6f34589..abcc3c1 100644 --- a/test +++ b/test @@ -1 +1 @@ -THis is to test POLL SCM Triggers +THis is to test POLL SCM Triggering check - test master...........