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

git isn't run inside build container

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Using docker-slaves, the checkout build phase is ran with commands inside the remoting container (which by change has git) not inside the configured build container.

      This is due to git-client to create it's own LocalLauncher vs using the Node's one.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            …but you then lose behaviors of checkout scm for multibranch projects (pinning an exact commit, merging with base branch); for non-multibranch projects, you lose the changelog & polling integrations. Pick your poison.

            Also see JENKINS-28335.

            Show
            jglick Jesse Glick added a comment - …but you then lose behaviors of checkout scm for multibranch projects (pinning an exact commit, merging with base branch); for non-multibranch projects, you lose the changelog & polling integrations. Pick your poison. Also see JENKINS-28335 .
            Hide
            spinus1 Alessio Moscatello added a comment -

            Hello Mark Waite, it could work, but I'll loose functionalities like repository polling...

            What if I just checkout code from agent name space? I think it's just a matt
            er of adding repo to JNPL container that is used to run Jenkins agent...

            Show
            spinus1 Alessio Moscatello added a comment - Hello Mark Waite, it could work, but I'll loose functionalities like repository polling... What if I just checkout code from agent name space? I think it's just a matt er of adding repo to JNPL container that is used to run Jenkins agent...
            Hide
            cvakiitho Tomas Hartmann added a comment -

            This also affects K8N plugin when you use pod+container: 

            podTemplate(cloud: 'kubernetes', containers: [containerTemplate(args: '-c', command: '/bin/bash ', image: 'image with git ca-cert', name: 'base', workingDir: '/home/jenkins')], label: 'base') {
              node('base'){
                container('base')

            {       git credentialsId: 'something', url: '[https://some-ca-cert-git|https://some/].git' }

            }

            Show
            cvakiitho Tomas Hartmann added a comment - This also affects K8N plugin when you use pod+container:  podTemplate(cloud: 'kubernetes', containers: [containerTemplate(args: '-c', command: '/bin/bash ', image: 'image with git ca-cert', name: 'base', workingDir: '/home/jenkins')] , label: 'base') {   node('base'){     container('base') {       git credentialsId: 'something', url: '[https://some-ca-cert-git|https://some/].git' } }
            Hide
            faroguy0 Ian Panzer added a comment -

            Any update on this issue? Encountering it in a k8s environment on AWS.

            Show
            faroguy0 Ian Panzer added a comment - Any update on this issue? Encountering it in a k8s environment on AWS.
            Hide
            markewaite Mark Waite added a comment -

            No change Ian Panzer

            Show
            markewaite Mark Waite added a comment - No change Ian Panzer

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ndeloof Nicolas De Loof
              Votes:
              15 Vote for this issue
              Watchers:
              24 Start watching this issue

                Dates

                Created:
                Updated: