diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..4f4469e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,71 @@ +// Jenkinsfile (Declarative Pipeline) +// pipeline { +// agent any +// stages { +// stage('Build') { +// steps { +// sh 'echo "Hello World"' +// sh ''' +// echo "Multiline shell steps works too" +// ls -lah +// ''' +// } +// } +// } +// } + +//Jenkinsfile (Declarative Pipeline) +// pipeline { +// agent any +// stages { +// stage('Build') { +// steps { +// echo 'Starting the build Stage' +// echo 'Build Stage completed successfully' +// } +// } +// stage('Test') { +// steps { +// echo 'Starting the Test Stage' +// echo 'Test Stage completed successfully' +// } +// } +// stage('Deploy') { +// steps { +// echo 'Starting the Deploy Stage' +// echo 'Deploy Stage completed successfully' +// } +// } +// } +// } + +stage('Environment Analysis') { + + parallel { + + stage('Priting All Global Variables') { + steps { + sh """ + env + """ + } + } + + stage('Execute Shell') { + steps { + sh 'echo "Hello"' + } + } + + stage('Print ENV variable') { + steps { + sh "echo ${APP_ENV}" + } + } + + + } + } + + +//Test diff --git a/infra/setup.yaml b/infra/setup.yaml index bf630cb..db86075 100644 --- a/infra/setup.yaml +++ b/infra/setup.yaml @@ -5,7 +5,7 @@ metadata: name: helloworld-tf spec: interval: 1m - url: https://github.com/flux-subsystem-argo/tf-controller-helloworld + url: https://github.com/marclee2/learn-terraform-github-actions ref: branch: main ---