From 55579868c2d6e8672e59625cdc2f54eac27484ce Mon Sep 17 00:00:00 2001 From: vKemo Date: Thu, 29 Aug 2024 23:32:20 +0300 Subject: [PATCH 01/11] Update helloworld.py --- helloworld.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helloworld.py b/helloworld.py index daa3c4af..1bc154e3 100644 --- a/helloworld.py +++ b/helloworld.py @@ -1,2 +1,2 @@ -print("Hello world") +print("Hello wdedsddsdsdsddsdsdsdsdsdsorld") From d1da8d0109d8af57518b1343aba973399820cc3c Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 16:09:44 +0300 Subject: [PATCH 02/11] update helloworld.py --- helloworld.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helloworld.py b/helloworld.py index 1bc154e3..62d6f1fb 100644 --- a/helloworld.py +++ b/helloworld.py @@ -1,2 +1,2 @@ -print("Hello wdedsddsdsdsddsdsdsdsdsdsorld") +print("Hello") From 8dafed40071d396cc3a0a99e7f4348de02431a94 Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 16:11:07 +0300 Subject: [PATCH 03/11] update hello --- helloworld.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helloworld.py b/helloworld.py index 62d6f1fb..96b1c244 100644 --- a/helloworld.py +++ b/helloworld.py @@ -1,2 +1,2 @@ -print("Hello") +print("my name is kareem") From 29df2ee7cdea5e14bac8be5bacc6cd6657b37d8c Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 16:20:46 +0300 Subject: [PATCH 04/11] updated jenkinsfile --- Jenkinsfile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index da9c3aaa..8b56215d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,15 @@ pipeline { agent { node { - label 'docker-agent-python' + label 'jenkins-agent' } } - triggers { - pollSCM '* * * * *' - } stages { stage('Build') { steps { echo "Building.." sh ''' - cd myapp - pip install -r requirements.txt + echo "doing build stuff.." ''' } } @@ -21,9 +17,7 @@ pipeline { steps { echo "Testing.." sh ''' - cd myapp - python3 hello.py - python3 hello.py --name=Brad + echo "doing test stuff.." ''' } } From 2486d9a11b34cb172c6eb403f54280b643fa4a96 Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 16:32:42 +0300 Subject: [PATCH 05/11] update2 jenkins --- Jenkinsfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8b56215d..90abad2c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,4 @@ pipeline { - agent { - node { - label 'jenkins-agent' - } - } stages { stage('Build') { steps { From d82a7338547ea399d1760eff31f2134030fc9d6f Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 16:34:04 +0300 Subject: [PATCH 06/11] brr --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 90abad2c..c852fe1d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,7 @@ pipeline { + agent{ + + } stages { stage('Build') { steps { From 65fb2b9e3ec4c114c234486a38d8c0543f2675dd Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 16:34:53 +0300 Subject: [PATCH 07/11] sss --- Jenkinsfile | 6 +++--- Jenkinsfile.template | 33 --------------------------------- 2 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 Jenkinsfile.template diff --git a/Jenkinsfile b/Jenkinsfile index c852fe1d..8997223f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { - agent{ - - } + agent { + none + } stages { stage('Build') { steps { diff --git a/Jenkinsfile.template b/Jenkinsfile.template deleted file mode 100644 index 527df5d2..00000000 --- a/Jenkinsfile.template +++ /dev/null @@ -1,33 +0,0 @@ -pipeline { - agent { - node { - label 'jenkins-agent-goes-here' - } - } - stages { - stage('Build') { - steps { - echo "Building.." - sh ''' - echo "doing build stuff.." - ''' - } - } - stage('Test') { - steps { - echo "Testing.." - sh ''' - echo "doing test stuff.. - ''' - } - } - stage('Deliver') { - steps { - echo 'Deliver....' - sh ''' - echo "doing delivery stuff.." - ''' - } - } - } -} \ No newline at end of file From f0340c4250e7b5a50ac27d46a4669666cde923bb Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 16:36:57 +0300 Subject: [PATCH 08/11] sssssss --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8997223f..ca384860 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,9 @@ pipeline { - agent { - none - } + agent { none } // No agent allocated for the entire pipeline + stages { stage('Build') { + agent { label 'my-agent-label' } // Specify an agent for this stage steps { echo "Building.." sh ''' @@ -12,6 +12,7 @@ pipeline { } } stage('Test') { + agent { label 'my-agent-label' } // Specify an agent for this stage steps { echo "Testing.." sh ''' @@ -20,6 +21,7 @@ pipeline { } } stage('Deliver') { + agent { label 'my-agent-label' } // Specify an agent for this stage steps { echo 'Deliver....' sh ''' @@ -28,4 +30,4 @@ pipeline { } } } -} \ No newline at end of file +} From 4b9faffc5cd57c869c969680c634feccf21924dd Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 16:38:28 +0300 Subject: [PATCH 09/11] ssasas --- Jenkinsfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ca384860..68879ac5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,8 @@ pipeline { - agent { none } // No agent allocated for the entire pipeline + agent none // No agent will be allocated for the entire pipeline stages { stage('Build') { - agent { label 'my-agent-label' } // Specify an agent for this stage steps { echo "Building.." sh ''' @@ -12,7 +11,6 @@ pipeline { } } stage('Test') { - agent { label 'my-agent-label' } // Specify an agent for this stage steps { echo "Testing.." sh ''' @@ -21,7 +19,6 @@ pipeline { } } stage('Deliver') { - agent { label 'my-agent-label' } // Specify an agent for this stage steps { echo 'Deliver....' sh ''' From 8fb5537c59bca28a8ae949bde89e26d27336d28b Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 16:39:51 +0300 Subject: [PATCH 10/11] asasasassa --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 68879ac5..f6c64eb5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent none // No agent will be allocated for the entire pipeline + agent any // Allocate an agent for the entire pipeline stages { stage('Build') { From feffb1ee9d23d1bfe22a3414693a3961f92eb3fa Mon Sep 17 00:00:00 2001 From: vKemo Date: Fri, 30 Aug 2024 17:40:58 +0300 Subject: [PATCH 11/11] brrr update --- Jenkinsfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f6c64eb5..73395fe6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,27 +2,27 @@ pipeline { agent any // Allocate an agent for the entire pipeline stages { - stage('Build') { + stage('WakingUp') { steps { - echo "Building.." + echo "WakingUp.." sh ''' - echo "doing build stuff.." + echo "doing WakingUp stuff.." ''' } } - stage('Test') { + stage('Eating') { steps { - echo "Testing.." + echo "Eating.." sh ''' - echo "doing test stuff.." + echo "doing Eating stuff.." ''' } } - stage('Deliver') { + stage('Working') { steps { - echo 'Deliver....' + echo 'Working....' sh ''' - echo "doing delivery stuff.." + echo "doing Working stuff.." ''' } }