Jenkinsfile
changeset 74 57edfcce2a40
parent 70 8e73f248c6d4
child 80 c213d491e876
equal deleted inserted replaced
73:d2fd92cae180 74:57edfcce2a40
     3  */
     3  */
     4 
     4 
     5 def pipeline;
     5 def pipeline;
     6 stage ( "Load Pipeline") {
     6 stage ( "Load Pipeline") {
     7     node {
     7     node {
     8         checkout scm
     8         /*
     9         pipeline = load "pipeline.groovy"
     9          * Do not use default workspace here as checkout
       
    10          * would erase all contents. Use a dedicated
       
    11          * workspace instead
       
    12          */
       
    13         ws ("workspace/${env.JOB_NAME}@loadpipeline") {
       
    14             checkout scm
       
    15             pipeline = load "pipeline.groovy"
       
    16         }
    10     }
    17     }
    11 }
    18 }
    12 
    19 
    13 pipeline.build()
    20 pipeline.build()
    14 pipeline.test()
    21 pipeline.test()