diff --git a/jenkin test file b/jenkin test file new file mode 100644 index 0000000..a1002b2 --- /dev/null +++ b/jenkin test file @@ -0,0 +1,15 @@ + agent any + stages { + stage ('First job'){ + steps { + echo "hello team" + } + } + stage ('Second job'){ + steps { + echo "good morning" + } + + } + } +} diff --git a/my-app/Jenkinsfile b/my-app/Jenkinsfile index 6ebdccf..7d3388b 100644 --- a/my-app/Jenkinsfile +++ b/my-app/Jenkinsfile @@ -11,6 +11,8 @@ pipeline { steps{ echo "PATH = ${M2_HOME}/bin:${PATH}" echo "M2_HOME = /opt/maven" + echo "hello " + } } stage('Build') { diff --git a/my-app/Jenkinsfile01 b/my-app/Jenkinsfile01 new file mode 100644 index 0000000..efb43b7 --- /dev/null +++ b/my-app/Jenkinsfile01 @@ -0,0 +1,7 @@ +node{ + stage('SCM Checkout')} +git 'https://github.com/amritansh1989/jenkins-pipeline-example/new/main/my-app' +} +stage('compile-Package'){ + sh 'mvn package' +} diff --git a/test poililine b/test poililine new file mode 100644 index 0000000..0964aac --- /dev/null +++ b/test poililine @@ -0,0 +1,16 @@ +pipeline { + agent any + stages { + stage ('First job'){ + steps { + echo "hello " + } + } + stage ('Second job'){ + steps { + echo "good " + } + + } + } +}