From f51f1e9249ee920df897e7f5d7c57e6be5675f39 Mon Sep 17 00:00:00 2001 From: Igor Todorovski Date: Mon, 18 Jul 2022 08:34:57 -0400 Subject: [PATCH 1/7] CICD groovy script used in https://128.168.139.253:8443/ --- cicd.groovy | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cicd.groovy diff --git a/cicd.groovy b/cicd.groovy new file mode 100644 index 0000000..78a21cb --- /dev/null +++ b/cicd.groovy @@ -0,0 +1,6 @@ +node('linux') +{ + stage('Build') { + build job: 'Port-Pipeline', parameters: [string(name: 'REPO', value: 'autoconfport'), string(name: 'DESCRIPTION', 'autoconfport' )] + } +} From 51d7c6f228258a14afe9be764fbd44593461f161 Mon Sep 17 00:00:00 2001 From: Igor Todorovski Date: Mon, 18 Jul 2022 08:46:48 -0400 Subject: [PATCH 2/7] Add description to cicd.groovy script --- cicd.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd.groovy b/cicd.groovy index 78a21cb..4a19075 100644 --- a/cicd.groovy +++ b/cicd.groovy @@ -1,6 +1,6 @@ node('linux') { stage('Build') { - build job: 'Port-Pipeline', parameters: [string(name: 'REPO', value: 'autoconfport'), string(name: 'DESCRIPTION', 'autoconfport' )] + build job: 'Port-Pipeline', parameters: [string(name: 'REPO', value: 'autoconfport'), string(name: 'DESCRIPTION', 'Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.' )] } } From ccbd2beeb3b34496a944dc100bc428cf318e7623 Mon Sep 17 00:00:00 2001 From: Igor Todorovski Date: Mon, 18 Jul 2022 09:41:25 -0400 Subject: [PATCH 3/7] Add polling for changes in the jenkins script --- cicd.groovy | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/cicd.groovy b/cicd.groovy index 4a19075..189f139 100644 --- a/cicd.groovy +++ b/cicd.groovy @@ -1,6 +1,24 @@ node('linux') { - stage('Build') { - build job: 'Port-Pipeline', parameters: [string(name: 'REPO', value: 'autoconfport'), string(name: 'DESCRIPTION', 'Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.' )] + stage ('Poll') { + checkout([ + $class: 'GitSCM', + branches: [[name: '*/main']], + doGenerateSubmoduleConfigurations: false, + extensions: [], + userRemoteConfigs: [[url: 'https://github.com/ZOSOpenTools/autoconfport.git']]]) + ]) + + checkout([ + $class: 'GitSCM', + branches: [[name: '*/main']], + doGenerateSubmoduleConfigurations: false, + extensions: [], + userRemoteConfigs: [[url: 'https://github.com/ZOSOpenTools/utils.git']]]) + ]) } + + stage('Build') { + build job: 'Port-Pipeline', parameters: [string(name: 'REPO', value: 'autoconfport'), string(name: 'DESCRIPTION', 'Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.' )] + } } From 2e5621503122a15a4f56033e83791404e3557645 Mon Sep 17 00:00:00 2001 From: Igor Todorovski Date: Tue, 19 Jul 2022 21:07:19 -0400 Subject: [PATCH 4/7] Remove polling of utils.git --- cicd.groovy | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cicd.groovy b/cicd.groovy index 189f139..dd84eca 100644 --- a/cicd.groovy +++ b/cicd.groovy @@ -7,15 +7,6 @@ node('linux') doGenerateSubmoduleConfigurations: false, extensions: [], userRemoteConfigs: [[url: 'https://github.com/ZOSOpenTools/autoconfport.git']]]) - ]) - - checkout([ - $class: 'GitSCM', - branches: [[name: '*/main']], - doGenerateSubmoduleConfigurations: false, - extensions: [], - userRemoteConfigs: [[url: 'https://github.com/ZOSOpenTools/utils.git']]]) - ]) } stage('Build') { From 08b18fbcfec067fd878e53ff12e7b11ef16d8d4b Mon Sep 17 00:00:00 2001 From: Igor Todorovski Date: Tue, 19 Jul 2022 21:21:22 -0400 Subject: [PATCH 5/7] Remove polling of utils.git --- cicd.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd.groovy b/cicd.groovy index dd84eca..abb758f 100644 --- a/cicd.groovy +++ b/cicd.groovy @@ -10,6 +10,6 @@ node('linux') } stage('Build') { - build job: 'Port-Pipeline', parameters: [string(name: 'REPO', value: 'autoconfport'), string(name: 'DESCRIPTION', 'Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.' )] + build job: 'Port-Pipeline', parameters: [string(name: 'REPO', value: 'autoconfport'), string(name: 'DESCRIPTION', value: 'Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.' )] } } From 737d5794ccefa5565010e75eebd3f14f9d817545 Mon Sep 17 00:00:00 2001 From: Igor Todorovski Date: Wed, 20 Jul 2022 09:54:56 -0400 Subject: [PATCH 6/7] Remove polling of utils.git --- cicd.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd.groovy b/cicd.groovy index abb758f..51ca973 100644 --- a/cicd.groovy +++ b/cicd.groovy @@ -10,6 +10,6 @@ node('linux') } stage('Build') { - build job: 'Port-Pipeline', parameters: [string(name: 'REPO', value: 'autoconfport'), string(name: 'DESCRIPTION', value: 'Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.' )] + build job: 'Port-Pipeline', parameters: [string(name: 'PORT_GITHUB_REPO', value: 'autoconfport'), string(name: 'PORT_DESCRIPTION', value: 'Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.' )] } } From 23788d05babbecbebf7c81a8d3f0c421ea7c9d12 Mon Sep 17 00:00:00 2001 From: Igor Todorovski Date: Wed, 20 Jul 2022 10:00:38 -0400 Subject: [PATCH 7/7] Add full repo url --- cicd.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd.groovy b/cicd.groovy index 51ca973..a4a085e 100644 --- a/cicd.groovy +++ b/cicd.groovy @@ -10,6 +10,6 @@ node('linux') } stage('Build') { - build job: 'Port-Pipeline', parameters: [string(name: 'PORT_GITHUB_REPO', value: 'autoconfport'), string(name: 'PORT_DESCRIPTION', value: 'Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.' )] + build job: 'Port-Pipeline', parameters: [string(name: 'PORT_GITHUB_REPO', value: 'https://github.com/ZOSOpenTools/autoconfport.git'), string(name: 'PORT_DESCRIPTION', value: 'Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.' )] } }