Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43415

How to pass ENV variables to expose port while building

      I am unable to forward port through this plugin.

      I want to create a new side container of MYSQL which picks code from my SCM(i.e git) and the file on git can access this side container of mysql.

      I tried to do this. but landed up on an error -

      [http://stackoverflow.com/questions/43229847/econnrefused-127-0-0-13306-to-mysql-container-inside-jenkins]

      So is there a way I can run the "docker run" command from inside jenkins so that this connection refused error can go.

      Or please suggest a solution as to how to achieve this !

       

          [JENKINS-43415] How to pass ENV variables to expose port while building

          UDIT Agrawal created issue -
          UDIT Agrawal made changes -
          Description Original: I am unable to forward port through this plugin.

          I want to create a new side container of MYSQL which picks code from my SCM(i.e git) and the file on git can access this side container of mysql.

          I tried to do this. but landed up on an error -

          [#http://stackoverflow.com/questions/43229847/econnrefused-127-0-0-13306-to-mysql-container-inside-jenkins

          So is there a way I can run the "docker run" command from inside jenkins so that this connection refused error can go.

          Or please suggest a solution as to how to achieve this !

           
          New: I am unable to forward port through this plugin.

          I want to create a new side container of MYSQL which picks code from my SCM(i.e git) and the file on git can access this side container of mysql.

          I tried to do this. but landed up on an error -

          [[http://stackoverflow.com/questions/43229847/econnrefused-127-0-0-13306-to-mysql-container-inside-jenkins] |http://example.com]

          So is there a way I can run the "docker run" command from inside jenkins so that this connection refused error can go.

          Or please suggest a solution as to how to achieve this !

           
          UDIT Agrawal made changes -
          Description Original: I am unable to forward port through this plugin.

          I want to create a new side container of MYSQL which picks code from my SCM(i.e git) and the file on git can access this side container of mysql.

          I tried to do this. but landed up on an error -

          [[http://stackoverflow.com/questions/43229847/econnrefused-127-0-0-13306-to-mysql-container-inside-jenkins] |http://example.com]

          So is there a way I can run the "docker run" command from inside jenkins so that this connection refused error can go.

          Or please suggest a solution as to how to achieve this !

           
          New: I am unable to forward port through this plugin.

          I want to create a new side container of MYSQL which picks code from my SCM(i.e git) and the file on git can access this side container of mysql.

          I tried to do this. but landed up on an error -

          [[http://stackoverflow.com/questions/43229847/econnrefused-127-0-0-13306-to-mysql-container-inside-jenkins]]

          So is there a way I can run the "docker run" command from inside jenkins so that this connection refused error can go.

          Or please suggest a solution as to how to achieve this !

           
          Utkarsh Kumar made changes -
          Summary Original: How to pass ENV variables to expose port while building New: How to pass ENV variablesd to expose port while building
          Utkarsh Kumar made changes -
          Summary Original: How to pass ENV variablesd to expose port while building New: How to pass ENV variables to expose port while building
          Nicolas De Loof made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            ndeloof Nicolas De Loof
            udit04 UDIT Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: