At this moment i have the following setup

1) `Jenkins` (running in `docker`)
2) A Cloud configured in jenkins, that is configured to use docker. 
(Including an image which is a docker template). So i can build on `slaves`
3) A `Multipipeline`configured in jenkins
4) When this build runs it automatically starts a slave and runs through 
the pipeline.

This works fine, but has no use for me. I want to start up all containers 
that are in my source code (PHP project that needs different containers / 
services to run). If the `automated tests` succeed, i want jenkins to push 
everything to my `docker registry`.

This is my pipelinescript so far:

pipeline {

    agent {
        label "build-slave"
    }


    stages {
        stage('Checkout') {

            steps {

                // I want to do some docker stuff here

                echo "hallo Max"
                echo "hier steht jetzt auch was"
                sleep 10
            }
        }

        stage('Setup-Env') {
            steps {
                echo "This is the Setup"
            }
        }
    }
}



I want to do some docker things there. Can someone help me on this?

-- 
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/d3fde360-e4b2-4ee9-8f61-8b5a9737f8c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to