Continuum
  1. Continuum
  2. CONTINUUM-2628

Continuum uses SCM credentials provided on project add when checking out and updating working copy during project build and during release:prepare when using GIT and SSH in SCM urls

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0 (Beta)
    • Fix Version/s: 1.4.1
    • Component/s: Release, SCM
    • Labels:
      None

      Description

      In the continuum-build agent logs below, the username and password specified in the scm command git pull ssh://oching:PASSWORD@github.com/myprivaterepository/myproject.git during update-working-copy are the SCM credentials I provided during project add.

      The connectionUrl and developerConnectionUrl specified in my POM are scm:git:ssh://git@github.com/myprivaterepository/myproject.git

      I added my project using the POM Url: https://github.com/myprivaterepository/myproject/raw/master/pom.xml

      2011-05-23 10:59:02,806 [btpool0-4] INFO  org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer  - Preparing release
      2011-05-23 10:59:03,622 [pool-3-thread-1] INFO  releasePhase#update-working-copy  - Updating local copy against the scm...
      2011-05-23 10:59:03,808 [pool-3-thread-1] INFO  releasePhase#update-working-copy  - Executing: /bin/sh -c cd /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231 && git symbolic-ref HEAD
      2011-05-23 10:59:03,808 [pool-3-thread-1] INFO  releasePhase#update-working-copy  - Working directory: /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231
      2011-05-23 10:59:04,063 [btpool0-4] INFO  org.apache.continuum.buildagent.ContinuumBuildAgentServiceImpl  - Ping Ok
      2011-05-23 10:59:04,102 [btpool0-4] INFO  org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer  - Retrieving listener for releaseId=com.maestrodev.maestro:parent
      2011-05-23 10:59:04,628 [pool-3-thread-1] INFO  scmManager  - Executing: /bin/sh -c cd /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231 && git pull ssh://oching:PASSWORD@github.com/myprivaterepository/myproject.git master
      2011-05-23 10:59:04,630 [pool-3-thread-1] INFO  scmManager  - Working directory: /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231
      2011-05-23 10:59:14,146 [btpool0-0] INFO  org.apache.continuum.buildagent.ContinuumBuildAgentServiceImpl  - Ping Ok
      2011-05-23 10:59:14,152 [btpool0-0] INFO  org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer  - Retrieving listener for releaseId=com.maestrodev.maestro:parent
      2011-05-23 10:59:23,030 [pool-3-thread-1] WARN  scmManager  - failed to update git, return code 1
      

        Activity

        Maria Odea Ching created issue -
        Maria Odea Ching made changes -
        Field Original Value New Value
        Description In the continuum-build agent logs below, the username and password specified in the scm command {{git pull ssh://oching:PASSWORD@github.com/myprivaterepository/myproject.git}} during {{update-working-copy}} are the SCM credentials I provided during project add.

        The {{connectionUrl}} and {{developerConnectionUrl}} specified in my POM are {{scm:git:ssh://git@github.com/myprivaterepository/myproject.git}}

        I added my project using the POM Url: {{https://github.com/myprivaterepository/myproject/raw/master/pom.xml}}

        {code}
        2011-05-23 10:59:02,806 [btpool0-4] INFO org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer - Preparing release
        2011-05-23 10:59:03,622 [pool-3-thread-1] INFO releasePhase#update-working-copy - Updating local copy against the scm...
        2011-05-23 10:59:03,808 [pool-3-thread-1] INFO releasePhase#update-working-copy - Executing: /bin/sh -c cd /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-r1124588/data/working-directory/231 && git symbolic-ref HEAD
        2011-05-23 10:59:03,808 [pool-3-thread-1] INFO releasePhase#update-working-copy - Working directory: /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-r1124588/data/working-directory/231
        2011-05-23 10:59:04,063 [btpool0-4] INFO org.apache.continuum.buildagent.ContinuumBuildAgentServiceImpl - Ping Ok
        2011-05-23 10:59:04,102 [btpool0-4] INFO org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer - Retrieving listener for releaseId=com.maestrodev.maestro:parent
        2011-05-23 10:59:04,628 [pool-3-thread-1] INFO scmManager - Executing: /bin/sh -c cd /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231 && git pull ssh://oching:PASSWORD@github.com/myprivaterepository/myproject.git master
        2011-05-23 10:59:04,630 [pool-3-thread-1] INFO scmManager - Working directory: /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231
        2011-05-23 10:59:14,146 [btpool0-0] INFO org.apache.continuum.buildagent.ContinuumBuildAgentServiceImpl - Ping Ok
        2011-05-23 10:59:14,152 [btpool0-0] INFO org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer - Retrieving listener for releaseId=com.maestrodev.maestro:parent
        2011-05-23 10:59:23,030 [pool-3-thread-1] WARN scmManager - failed to update git, return code 1
        {code}
        In the continuum-build agent logs below, the username and password specified in the scm command {{git pull ssh://oching:PASSWORD@github.com/myprivaterepository/myproject.git}} during {{update-working-copy}} are the SCM credentials I provided during project add.

        The {{connectionUrl}} and {{developerConnectionUrl}} specified in my POM are {{scm:git:ssh://git@github.com/myprivaterepository/myproject.git}}

        I added my project using the POM Url: {{https://github.com/myprivaterepository/myproject/raw/master/pom.xml}}

        {code}
        2011-05-23 10:59:02,806 [btpool0-4] INFO org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer - Preparing release
        2011-05-23 10:59:03,622 [pool-3-thread-1] INFO releasePhase#update-working-copy - Updating local copy against the scm...
        2011-05-23 10:59:03,808 [pool-3-thread-1] INFO releasePhase#update-working-copy - Executing: /bin/sh -c cd /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231 && git symbolic-ref HEAD
        2011-05-23 10:59:03,808 [pool-3-thread-1] INFO releasePhase#update-working-copy - Working directory: /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231
        2011-05-23 10:59:04,063 [btpool0-4] INFO org.apache.continuum.buildagent.ContinuumBuildAgentServiceImpl - Ping Ok
        2011-05-23 10:59:04,102 [btpool0-4] INFO org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer - Retrieving listener for releaseId=com.maestrodev.maestro:parent
        2011-05-23 10:59:04,628 [pool-3-thread-1] INFO scmManager - Executing: /bin/sh -c cd /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231 && git pull ssh://oching:PASSWORD@github.com/myprivaterepository/myproject.git master
        2011-05-23 10:59:04,630 [pool-3-thread-1] INFO scmManager - Working directory: /Users/Deng/Checkouts/continuum-trunk/continuum-buildagent/continuum-buildagent-jetty/target/apache-continuum-buildagent-1.4.1-SNAPSHOT/data/working-directory/231
        2011-05-23 10:59:14,146 [btpool0-0] INFO org.apache.continuum.buildagent.ContinuumBuildAgentServiceImpl - Ping Ok
        2011-05-23 10:59:14,152 [btpool0-0] INFO org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer - Retrieving listener for releaseId=com.maestrodev.maestro:parent
        2011-05-23 10:59:23,030 [pool-3-thread-1] WARN scmManager - failed to update git, return code 1
        {code}
        Maria Odea Ching made changes -
        Summary Continuum uses SCM credentials provided during project add during update-working-copy during release:prepare if the protocol specified in the SCM urls in pom is SSH (using GIT) Continuum uses SCM credentials provided on project add when executing update-working-copy during release:prepare if the protocol specified in the SCM urls in pom is SSH (using GIT)
        Maria Odea Ching made changes -
        Assignee Maria Odea Ching [ oching ]
        Maria Odea Ching made changes -
        Fix Version/s 1.4.1 (Beta) [ 15104 ]
        Hide
        Maria Odea Ching added a comment -

        Fixed in continuum trunk -r1126624 with the following changes:

        • use credentials (if) specified in scm url when using ssh protocol for git scm provider, otherwise use scm credentials specified on project add on checkout and update of working copy actions
        • added unit tests for setting correct credentials to use in continuum actions
        Show
        Maria Odea Ching added a comment - Fixed in continuum trunk -r1126624 with the following changes: use credentials (if) specified in scm url when using ssh protocol for git scm provider, otherwise use scm credentials specified on project add on checkout and update of working copy actions added unit tests for setting correct credentials to use in continuum actions
        Maria Odea Ching made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Hide
        Maria Odea Ching added a comment -

        Additional fixes committed in continuum trunk for continuum-release -r1126667.

        Show
        Maria Odea Ching added a comment - Additional fixes committed in continuum trunk for continuum-release -r1126667 .
        Hide
        Maria Odea Ching added a comment - - edited

        Updated summary to reflect the entire affected parts.

        Show
        Maria Odea Ching added a comment - - edited Updated summary to reflect the entire affected parts.
        Maria Odea Ching made changes -
        Summary Continuum uses SCM credentials provided on project add when executing update-working-copy during release:prepare if the protocol specified in the SCM urls in pom is SSH (using GIT) Continuum uses SCM credentials provided on project add when checking out and updating working copy during project build and during release:prepare when using GIT and SSH in SCM urls
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:36:01 UTC 2015 [ 1428222961749 ]
        Mark Thomas made changes -
        Workflow jira [ 12711271 ] Default workflow, editable Closed status [ 12740738 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:12:18 UTC 2015 [ 1428268338676 ]
        Mark Thomas made changes -
        Workflow jira [ 12948136 ] Default workflow, editable Closed status [ 12983561 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        14h 53m 1 Maria Odea Ching 23/May/11 14:12

          People

          • Assignee:
            Maria Odea Ching
            Reporter:
            Maria Odea Ching
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development