I have a similar problem my code looks like this:

#!groovy​


timestamps {
 def checkoutFolderPipelineScript = '/../workspace@script'
 def buildEnv
 node('master') {
 stage("Setup") {
 echo "${pwd()}"
 buildEnv = 
load("${pwd()}${checkoutFolderPipelineScript}/BuildEnvironment.groovy")
 }
 }

 node {
 stage('Create files') {
 parallel(
 JuriDefault: {
 def casinoName = "astroroyal"
 dir("${casinoName}") {
 writeFile file: "IoM_default.html", text: 
"<tr><td>IoM</td><td>3</td><td>3</td><td>0</td><td>0</td></tr>"

 buildEnv.stashItem("ast1", "IoM_default.html", "${pwd()}")
 }
 },
 JuriIoM: {
 def casinoName = "astroroyal_IoM"
 dir("${casinoName}") {
 writeFile file: "IoM.html", text: 
"<tr><td>IoM</td><td>17</td><td>10</td><td>7</td><td>0</td></tr>"

 buildEnv.stashItem("ast2", "IoM.html", "${pwd()}")
 }

 },
 JuriES: {
 def casinoName = "astroroyal_ES"
 dir("${casinoName}") {
 writeFile file: "ES.html", text: 
"<tr><td>IoM</td><td>7</td><td>0</td><td>7</td><td>0</td></tr>"

 buildEnv.stashItem("ast3", "ES.html", "${pwd()}")
 }

 }
 )
 }


 stage("Create overview of files content") {
 dir("testresultOverview") {
 unstash("ast1")
 unstash("ast2")
 unstash("ast3")
 sh """#!/bin/sh
 ls -l ${pwd()}
 """

 def reportFileList = new FileNameFinder().getFileNames("${pwd()}/", '*.html')
 def htmlMetaDataAndStyle = "<!DOCTYPE html>\n" +
 "<html>\n" +
 "<head>\n" +
 "<style>\n" +
 "table {\n" +
 " border-collapse: collapse;\n" +
 "}\n" +
 "th{" +
 "background-color: #8f9093;" +
 "color: white;" +
 "padding: 5px" +
 "}" +
 "table, td, th {\n" +
 " border: 1px solid black;\n" +
 "}\n" +
 "</style>\n" +
 "</head>\n" +
 "<body>"
 def reportOutput = 
"<table><th>Jurisdiction</th><th>Total</th><th>Passed</th><th>Failed</th><th>Skipped</th>\n"
 for (item in reportFileList) {
 // If it does exist
 if (fileExists(item)) {
 def output = readFile item;
 reportOutput = "${reportOutput} ${output}"
 } else {
 echo "skipp ${item}"
 }
 }
 echo "${reportOutput}"
 writeFile file: "testresultoverviewreport.html", text: 
"${htmlMetaDataAndStyle} ${reportOutput} </table></body></html>"
 publishHTML([allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true,
 reportDir : "${pwd()}",
 reportFiles : "testresultoverviewreport.html",
 reportName : "TestresultOverviewReport"])
 }

 }
 }
}



Am Donnerstag, 20. Oktober 2016 22:36:22 UTC+2 schrieb [email protected]:
>
> [Lint KayakFree] [android-lint] Computing warning deltas based on reference 
> build #35[Pipeline] [Lint KayakFree] }[Pipeline] [Lint KayakFree] // 
> node[Pipeline] [Lint KayakFree] }[Pipeline] // parallel[Pipeline] }[Pipeline] 
> // stage[Pipeline] End of Pipelinejava.lang.IllegalStateException: cannot 
> start writing logs to a finished node 
> org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode[id=30]
>
>
>
> The lint stage never finishes and lint passed so it shouldn't be hitting 
> the catch which does print a little debug output.
> This worked in the previous version of Jenkins (2.25)..current is 2.26:
>
> stage ('Lint') {
>   def branches = [:]
>   branches['Lint KayakFree'] = {
>     node ('android') {
>       try {
>         unstash name: 'source'
>         sh "./gradlew --no-daemon lintKayakFree${variant}"
>         androidLint()
>       } catch (Exception err) {
>         currentBuild.result = 'FAILURE'
>         this.notifyStash('FAILED')
>       }
>     }
>   }
>   branches['Lint Checkfelix'] = {
>     node ('android') {
>       try {
>         unstash name: 'source'
>         sh "./gradlew --no-daemon lintCheckfelix${variant}"
>       } catch (Exception err) {
>         currentBuild.result = 'FAILURE'
>         this.notifyStash('FAILED')
>       }
>     }
>   }
>   branches['Lint Swoodoo'] = {
>     node ('android') {
>       try {
>         unstash name: 'source'
>         sh "./gradlew --no-daemon lintSwoodoo${variant}"
>       } catch (Exception err) {
>         currentBuild.result = 'FAILURE'
>         this.notifyStash('FAILED')
>       }
>     }
>   }
>   parallel branches
> }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/72ef38e9-f2d0-438b-bd39-801ba865eda1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to