What are you trying to accomplish here? It looks like setup some queues and
db as infrastructure for something else that depends on it?

On Tue, Jun 16, 2020 at 14:48 Arturo Arenas <arturoar3...@gmail.com> wrote:

> hello everybody !!
>
> someone tried to do this?
>
> node {
>     docker.image('rabbitmq:3').withRun('--rm --hostname test-rabbit
> --name test-rabbit -p 15672:15672') { c ->
>         docker.image('rabbitmq:3').inside("--link ${c.id}:db") {
>           sh 'rabbitmqctl list_users'
>         }
>         docker.image('fedora').inside("--link ${c.id}:db") {
>             sh 'ls'
>         }
>     }
> }
>
> also i tried to do this
>
> pipeline {
>     agent {
>         docker 'fedora'
>     }
>     options {
>         buildDiscarder(logRotator(numToKeepStr: '1'))
>     }
>     stages {
>         stage('RabbitMQ') {
>             steps {
>               script {
>                   docker.image('rabbitmq:3').withRun('--rm --hostname
> test-rabbit --name test-rabbit -p 15672:15672') { c ->
>                     docker.image('rabbitmq:3').inside("--link ${c.id}:db")
> {
>                         sh 'rabbitmqctl list_users'
>                     }
>                   }
>               }
>             }
>         }
>     }
> }
>
>
> I'm having problems to perform my script
>
> thanks in advance
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9%2BJsvPkLUjmX8WsFjY18LgiAYi-guu4bZLK%3Dt8_Rs-kwA%40mail.gmail.com.

Reply via email to