script pipeline with rabbitmq

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

script pipeline with rabbitmq

Arturo Arenas
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: script pipeline with rabbitmq

Jan Monterrubio
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 <[hidden email]> 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com.

--
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 [hidden email].
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 | Threaded
Open this post in threaded view
|

Re: script pipeline with rabbitmq

Arturo Arenas

Hello Jan,

Yes, i want to perform some test with AMQP in mi code, therefore, i need running sidecars containers, but i get some issues with that implementation.  


El martes, 16 de junio de 2020, 18:36:51 (UTC-4), Jan Monterrubio escribió:
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="c7sTqVaTBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">arturo...@...> 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 ${<a href="http://c.id" style="font-family:monospace" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc.id\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHSZf6JsWl5x6ExEydTZr5cOuQuhA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc.id\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHSZf6JsWl5x6ExEydTZr5cOuQuhA&#39;;return true;">c.id}:db") {
          sh
'rabbitmqctl list_users'
       
}
        docker
.image('fedora').inside("--link ${<a href="http://c.id" style="font-family:monospace" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc.id\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHSZf6JsWl5x6ExEydTZr5cOuQuhA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc.id\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHSZf6JsWl5x6ExEydTZr5cOuQuhA&#39;;return true;">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 ${<a href="http://c.id" style="font-family:monospace" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc.id\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHSZf6JsWl5x6ExEydTZr5cOuQuhA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc.id\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHSZf6JsWl5x6ExEydTZr5cOuQuhA&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="c7sTqVaTBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7b03eba5-6ae9-4961-9c0c-7cb6fb70b358o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: script pipeline with rabbitmq

Jan Monterrubio
In reply to this post by Arturo Arenas
Check out the sidecar portion of these docs: 

I think maybe the initial agent part is what might not be making it work. 

On Tue, Jun 16, 2020 at 14:48 Arturo Arenas <[hidden email]> 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9KUs5FG%2BfyJBcE3OY2odV52838abqnib9bfodERR8144Q%40mail.gmail.com.