Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9396ca1
Update 20200316.md
innocious Jun 30, 2021
dad23fc
Update Jenkinsfile
innocious Jul 16, 2021
67f0b18
Set Debug varialble to true
innocious Jul 16, 2021
93fb14a
Added Groovy_HOME variable to environment
innocious Jul 17, 2021
16e6d62
Made little changes to the Jenkinsfile
innocious Jul 18, 2021
ce30a09
Update Tools.groovy and removed def.
innocious Jul 23, 2021
12ea4de
Update Jenkinsfile
innocious Jul 23, 2021
7228eed
Updated Tools.groovy
innocious Jul 28, 2021
1f9359a
Updated groovyz to groovy
innocious Jul 30, 2021
6d22614
Fixed typo in Build Groovy Groovy zOS Utility stage
innocious Jul 31, 2021
e4a00cd
Set debug to false, and removed sh "env"
innocious Jul 31, 2021
8572176
Added groovyjar environment variable
innocious Aug 3, 2021
73df85c
Changed groovy command to groovyzhome
innocious Aug 5, 2021
177885c
Changed Build groovy zos utility command to groovyHome
innocious Aug 5, 2021
219076d
Update Jenkinsfile
innocious Aug 17, 2021
8cfec32
Changed cp to scp
innocious Aug 17, 2021
7532b2d
Update Jenkinsfile
innocious Aug 18, 2021
a874d88
Update Jenkinsfile
innocious Aug 18, 2021
46d7843
Update Jenkinsfile
innocious Aug 18, 2021
0cad3cb
Update Jenkinsfile
innocious Aug 18, 2021
e224ba4
Update Jenkinsfile
innocious Aug 19, 2021
d0d185d
Update Jenkinsfile
innocious Aug 23, 2021
2e1d8b7
Update Jenkinsfile
innocious Aug 23, 2021
061472c
Update Tools.groovy
innocious Aug 26, 2021
e635b70
Update Jenkinsfile
innocious Aug 26, 2021
d77b154
Update Jenkinsfile
innocious Aug 26, 2021
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
2 changes: 1 addition & 1 deletion Documentation/meetings/20200316.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Meeting notes:
- Discussion about developing for Polycephaly project
- Developing or adding to the Issue's log, with various tags, like #NewFeature, #Bug, etc
- Added Meeting information to the README.md, along with information about how to contribute, get involved, etc.
- Clean up the various documentation
- Clean up the various documentation.
30 changes: 20 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ pipeline {
srcGroovyPrgUtil = 'src/main/groovy/com/zos/program/utilities'

javaHome = '/usr/lpp/java/J8.0_64/bin'
groovyHome = '/u/jerrye/bin'
groovyzHome = '/opt/lpp/IBM/dbb/bin'
groovyHome = '/opt/lpp/IBM/dbb/groovy-2.4.12/'
GROOVY_HOME = '/opt/lpp/IBM/dbb/groovy-2.4.12/'
groovyzHome = '/u/jerrye/bin'
DBB_HOME = '/opt/lpp/IBM/dbb'
DBB_CONF = "${WORKSPACE}/conf"

Expand All @@ -29,6 +30,7 @@ pipeline {
DBBhtmlJar = '/opt/lpp/IBM/dbb/lib/dbb.html_1.0.6.jar'
ibmjzos = '/usr/lpp/java/J8.0_64/lib/ext/ibmjzos.jar'
dbbJNI = '/opt/lpp/IBM/dbb/lib/libDBB_JNI64.so'
groovyJar = '/opt/lpp/IBM/dbb/groovy-2.4.12/lib/groovy-2.4.12.jar'

polycephalyJar = "${WORKSPACE}/${env.libDir}/polycephaly.jar"
javaClassPath = "${env.ibmjzos}:${env.DBBcoreJar}:${env.DBBhtmlJar}"
Expand All @@ -37,7 +39,10 @@ pipeline {
polyClassPath = "${env.polycephalyJar}:${env.ibmjzosJar}:${env.DBBLib}"
polyBuildGroovy = "$WORKSPACE/build/build.groovy"
polySrcPackage = "$WORKSPACE/conf/package.txt"
polyRuntime = "/u/jerrye"
polyRuntime = "/u/jerrye/polyRuntime"

PolycephalyBuildDirectory = "$WORKSPACE/conf/"
PolycephalyBuildFile = "package.txt"

}

Expand Down Expand Up @@ -89,7 +94,9 @@ pipeline {
}
stage('Build Groovy zOS Utilities') {
steps {
sh "${env.groovyHome}/groovyc -cp .:${env.groovyClassPath} -d ${env.classesDir} ${env.srcGrovoyZosUtil}/*.groovy"
sh "env"
sh "export_BPXK_AUTOCVT=ON"
sh "${env.groovyzHome}/groovyc -cp .:${env.groovyClassPath} -d ${env.classesDir} ${env.srcGrovoyZosUtil}/*.groovy"
}
}
stage('Add Groovy ZOS Utilities to JAR') {
Expand All @@ -99,7 +106,7 @@ pipeline {
}
stage('Build Groovy Language Utilities') {
steps {
sh "${env.groovyHome}/groovyc -cp .:${env.groovyClassPath} -d ${env.classesDir} ${env.srcGroovyZosLang}/*.groovy"
sh "${env.groovyzHome}/groovyc -cp .:${env.groovyClassPath} -d ${env.classesDir} ${env.srcGroovyZosLang}/*.groovy"
}
}
stage('Add Groovy Language Utilities to JAR') {
Expand All @@ -109,7 +116,7 @@ pipeline {
}
stage('Build Groovy Program Utilities') {
steps {
sh "${env.groovyHome}/groovyc -cp .:${env.groovyClassPath} -d ${env.classesDir} ${env.srcGroovyPrgUtil}/*.groovy"
sh "${env.groovyzHome}/groovyc -cp .:${env.groovyClassPath} -d ${env.classesDir} ${env.srcGroovyPrgUtil}/*.groovy"
}
}
stage('Add Groovy Program Utilities to JAR') {
Expand All @@ -125,17 +132,19 @@ pipeline {
steps {
sh "export DBB_HOME=${env.DBB_HOME}"
sh "export DBB_CONF=${env.DBB_CONF}"
sh "${env.groovyzHome}/groovyz --classpath .:${env.groovyLibPath} ${env.polyBuildGroovy} --collection ${env.CollectionName} --debug --sourceDir ${env.polySrcPackage}"
sh "export GROOVY_HOME=${env.GROOVY_HOME}"
sh "${env.groovyzHome}/groovy --classpath .:${env.groovyLibPath} ${env.polyBuildGroovy} --collection ${env.CollectionName} --debug --sourceDir ${env.polySrcPackage}"
}
}
stage("Test") {
when {
expression { !env.Debug.toBoolean()}
}

steps {
sh "export DBB_HOME=${env.DBB_HOME}"
sh "export DBB_CONF=${env.DBB_CONF}"
sh "${env.groovyzHome}/groovyz --classpath .:${env.groovyLibPath} ${env.polyBuildGroovy} --collection ${env.CollectionName} --sourceDir ${env.polySrcPackage}"
sh "export GROOVY_HOME=${env.GROOVY_HOME}"
sh "${env.groovyzHome}/groovy --classpath .:${env.groovyLibPath} ${env.polyBuildGroovy} --collection ${env.CollectionName} --sourceDir ${env.polySrcPackage}"
}
}
stage("Deploy") {
Expand All @@ -156,7 +165,8 @@ pipeline {
sh 'printf "running DBB delete collection"'
sh "export DBB_HOME=${env.DBB_HOME}"
sh "export DBB_CONF=${env.DBB_CONF}"
sh "${env.groovyzHome}/groovyz --classpath .:${env.polyClassPath} ${env.polyBuildGroovy} --clean --collection ${env.CollectionName}"
sh "export GROOVY_HOME=${env.GROOVY_HOME}"
sh "${env.groovyzHome}/groovy --classpath .:${env.polyClassPath} ${env.polyBuildGroovy} --clean --collection ${env.CollectionName}"
}
}
}
Expand Down
20 changes: 10 additions & 10 deletions src/main/groovy/com/zos/groovy/utilities/Tools.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ class Tools {
* get the Polcephaly Build Directory and File location
* Load Polycephaly properties
*/
def properties.PolycephalyBuildDirectory = System.getenv("PolycephalyBuildDirectory")
properties.PolycephalyBuildDirectory = System.getenv("PolycephalyBuildDirectory")
if (properties.PolycephalyBuildDirectory == null)
new exception('Polycephaly Build Directory missing')
println('Polycephaly Build Directory missing')

def properties.PolycephalyBuildFile = System.getenv("PolycephalyBuildFile")
properties.PolycephalyBuildFile = System.getenv("PolycephalyBuildFile")
if (properties.PolycephalyBuildFile == null)
new exception('Polycephaly Build File missing')
println('Polycephaly Build File missing')

def buildPolycephalyPropFile = new File("properties.PolycephalyBuildDirectory/properties.PolycephalyBuildFile")
buildPolycephalyPropFile = new File("properties.PolycephalyBuildDirectory/properties.PolycephalyBuildFile")
if (properties.debug) println("buildPolycephalyPropFile = $buildPolycephalyPropFile")
if (buildPolycephalyPropFile.exists()) {
properties.load(new File("${buildPolycephalyPropFile}"))
Expand All @@ -164,15 +164,15 @@ class Tools {
* get the Project Build Directory and File location
* Load Project properties
*/
def properties.ProjectBuildDirectory = System.getenv("ProjectBuildDirectory")
properties.ProjectBuildDirectory = System.getenv("ProjectBuildDirectory")
if (properties.ProjectBuildDirectory == null)
new exception('Project Build Directory missing')
println('Project Build Directory missing')

def properties.ProjectBuildFile = System.getenv("ProjectBuildFile")
properties.ProjectBuildFile = System.getenv("ProjectBuildFile")
if (properties.ProjectBuildFile == null)
new exception('Project Build File missing')
println('Project Build File missing')

def buildProjectPropFile = new File("properties.ProjectBuildDirectory/properties.ProjectBuildFile")
buildProjectPropFile = new File("properties.ProjectBuildDirectory/properties.ProjectBuildFile")
if (properties.debug) println("buildProjectPropFile = $buildProjectPropFile")
if (buildProjectPropFile.exists()) {
properties.load(new File("${buildProjectPropFile}"))
Expand Down