Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.groovy scripts not running in order #17

Open
ianc-d opened this issue Dec 5, 2019 · 0 comments
Open

build.groovy scripts not running in order #17

ianc-d opened this issue Dec 5, 2019 · 0 comments

Comments

@ianc-d
Copy link

ianc-d commented Dec 5, 2019

Trying to run the build script with the mortgage application, but we get a link-edit job fail because the compile and cobol compiles have not run. These are marked in the buildOrder in build.groovy as ...

// build programs by invoking the appropriate build script
def buildOrder = ["BMSProcessing", "Compile", "CobolCompile", "LinkEdit"]
// optionally execute IMS MFS builds
if (properties.BUILD_MFS.toBoolean())
buildOrder << "MFSGENUtility"

println("** Invoking build scripts according to build order: ${buildOrder[1..-1].join(', ')}")
buildOrder.each { script ->
	// Use the ScriptMappings class to get the files mapped to the build script
	def buildFiles = ScriptMappings.getMappedList(script, buildList)
	buildFiles.each { file ->
		runScript(new File("${script}.groovy"), ["file":file])
		processCounter++

...but as you can see from the output they are not running and it's doing the BMSProcessing and then the LinkEdit. The first line in the Compile.groovy is a println but this doesn't come out, so what could be stopping them?

Output from the script is below...

_`** Searching for last successful build commit hash for build group MortgageApplication
Could not locate last successful build commit hash for build group MortgageApplication. Building all files.
** Scan the build list to collect dependency data
Scanning bms/epsmlis.bms
Scanning bms/epsmort.bms
Scanning cobol/epsmpmt.cbl
Scanning cobol/epsmlist.cbl
Scanning cobol/epsnbrvl.cbl
Scanning cobol_cics/epscsmrd.cbl
Scanning cobol_cics/epscsmrt.cbl
Scanning cobol_cics_db2/epscmort.cbl
Scanning link/epsmlist.lnk
Scanning mfs/dfsiv1.mfs
Scanning copybook/epsmortf.cpy
Scanning copybook/epsmtcom.cpy
Scanning copybook/epsmtinp.cpy
Scanning copybook/epsmtout.cpy
Scanning copybook/epsnbrpm.cpy
Scanning copybook/epspdata.cpy
** Storing remaining 16 logical files in repository collection 'MortgageApplication'
HTTP/1.1 200 OK
** Invoking build scripts according to build order: Compile, CobolCompile, LinkEdit, MFSGENUtility

  • Building bms/epsmlis.bms using BMSProcessing.groovy script
    Copying /u/home/DEVOPS/build/mainframe-code/MortgageApplication//bms/epsmlis.bms to DEVOPS.BMS(EPSMLIS)
    Processing BMS Map bms/epsmlis.bms
  • Building bms/epsmort.bms using BMSProcessing.groovy script
    Copying /u/home/DEVOPS/build/mainframe-code/MortgageApplication//bms/epsmort.bms to DEVOPS.BMS(EPSMORT)
    Processing BMS Map bms/epsmort.bms
  • Building link/epsmlist.lnk using LinkEdit.groovy script
    Copying /u/home/DEVOPS/build/mainframe-code/MortgageApplication//link/epsmlist.lnk to DEVOPS.LINK(EPSMLIST)
    Link editing link file link/epsmlist.lnk
    *! The return code (12) for link/epsmlist.lnk exceeded the maximum return code allowed (0)`_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant