Hi,

I want to test my project in several platforms: Ubuntu, CentOS, Debian, 
etc. I have created some docker slaves in jenkins for each platform. My 
jenkins file looks like:

def labels = ['DockerSlaveXenial', 'DockerSlaveTrusty']


def stage1() {
    checkout scm
    sh 'ls -l'
}


def stage2() {
    sh 'ls -lah'
    sh 'echo hi'
}


for (x in labels) {
    def label = x


    node(label) {
        stage ('Checkout source'){
            stage1()
        }
        stage ('Tests'){
            stage2()
        }
    }
}


It is working, it is executing the 2 stages in each node (docker slave). I 
have 3 questions:

   1. Is this the proper way to do it?.
   2. in *Stage View* I see a table with 4 columns: Checkout source, Tests, 
   Checkout source, Tests. Meaning two columns (checkout source and tests) for 
   each node. How can I group the test by node and stage?.
   3. On the other hand, I can't execute it with *parallel *because I can't 
   use *parallel *with *stages*. How can I execute it parallely?
   
Thanks.
Regards.

-- 
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/989ae8d5-6e88-4098-b383-1b303fc891ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to