Skip to content

[MRELEASE-1054] [Git submodule] Wrong Change on scm submodule after release:prepare and failed on pushChange #1237

@jira-importer

Description

@jira-importer

Cau Ta opened MRELEASE-1054 and commented

My project structure:

parent (git scm repo parent.git)

-- git submodule A (git scm repo a.git)

-- git submodule B (git scm repo b.git)

-- git submodule C (git scm repo c.git)

my maven release plugin config on parent pom.xml:

      org.apache.maven.plugins
      maven-release-plugin
      3.0.0-M1
     
          
           v@{project.version}
           true
           true
           true
           false
          

 

The release was successful but after release:prepare the scm config of all submodule has been change.

[Please take a look at the attachment]

--------------------------------------------------------------

Another bug i have been faced is:

when enable push change (true)

the release:prepare got stuck after push change at the first git submodule

[INFO] Executing: /bin/sh -c cd repository/beowulf/beowulf-libs/constant && git push git@github.com:beowulfchain-libs/beowulf-libs.git refs/heads/master:refs/heads/master
[INFO] Working directory: repository/beowulf/beowulf-libs/constant
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for beowulf 1.0-SNAPSHOT:
[INFO]
[INFO] beowulf ............................................ FAILURE [ 42.033 s]
[INFO] constant ........................................... SKIPPED
[INFO] core ............................................... SKIPPED
[INFO] utils .............................................. SKIPPED
[INFO] domain ............................................. SKIPPED
[INFO] config ............................................. SKIPPED
[INFO] logging ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.709 s
[INFO] Finished at: 2020-07-28T17:51:04+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project beowulf: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.3' to the list of known hosts.
[ERROR] To github.com:beowulfchain-libs/beowulf-libs.git


Affects: 3.0.0-M1

Attachments:

Remote Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions