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
71 changes: 71 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion infra/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down