jenkins - Maven Release Plugin throws svn : '' is not a working copy -
i have mavenized project , when try release, below error:
[error] failed execute goal org.apache.maven.plugins:maven-release-plugin:2.4 .2:prepare (default-cli) on project simpleweb: unable check local modific ations [error] provider message: [error] svn status failed. [error] command output: [error] svn: '' not working copy
i have below questions:
- how scm configuration given in pom file
- if communication scm should happen through https, how can configure certificate on client side
- the release should happen branch or trunk
my scm configuration follows:
<scm> <connection>scm:svn:https://domain.com/svn/new_fw/ci_poc/simpleweb/trunk</connection> <developerconnection>scm:svn:https://domain.com/svn/new_fw/ci_poc/simpleweb/trunk</developerconnection> <url>https://domain.com/svn/new_fw/ci_poc/simpleweb/trunk</url> </scm>
my maven release plugin configuration follows:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-scm-plugin</artifactid> <version>1.3</version> <configuration> <providerimplementations> <svn>javasvn</svn> </providerimplementations> <username>${scm.username}</username> <password>${scm.password}</password> </configuration> <dependencies> <dependency> <groupid>com.google.code.maven-scm-provider-svnjava</groupid> <artifactid>maven-scm-provider-svnjava</artifactid> <version>1.14</version> </dependency> </dependencies> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-release-plugin</artifactid> <version>2.4.2</version> <dependencies> <dependency> <groupid>com.google.code.maven-scm-provider-svnjava</groupid> <artifactid>maven-scm-provider-svnjava</artifactid> <version>1.6</version> </dependency> </dependencies> <configuration> <providerimplementations> <svn>javasvn</svn> </providerimplementations> <tagbase>https://domain-inc.com/svn/new_fw/ci_poc/simpleweb/tags</tagbase> <mavenexecutorid>forked-path</mavenexecutorid> </configuration> </plugin>
i struck here , cant move ahead. please help/guide me in resolving issue. when run same configuring maven release plugin in jenkins different error as: "svn: authentication required". why difference.
on windows jenkins slave have same issue multi maven project. fix added:
... <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-release-plugin</artifactid> ... <configuration> <commitbyproject>true</commitbyproject> ... </configuration> ...
Comments
Post a Comment