You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/06/12 10:10:10 UTC

[maven-gpg-plugin] branch stabilize created (now 3bef670)

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a change to branch stabilize
in repository https://gitbox.apache.org/repos/asf/maven-gpg-plugin.git.


      at 3bef670  Show build.log in case of failure

This branch includes the following new commits:

     new 3bef670  Show build.log in case of failure

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-gpg-plugin] 01/01: Show build.log in case of failure

Posted by rf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch stabilize
in repository https://gitbox.apache.org/repos/asf/maven-gpg-plugin.git

commit 3bef670ebc3490dd9f4fdb99e3ac94868b837a34
Author: rfscholte <rf...@apache.org>
AuthorDate: Fri Jun 12 12:10:02 2020 +0200

    Show build.log in case of failure
---
 .../{verify.bsh => verify.groovy}                     | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/src/it/sign-and-deploy-file-without-pom/verify.bsh b/src/it/sign-and-deploy-file-without-pom/verify.groovy
similarity index 72%
rename from src/it/sign-and-deploy-file-without-pom/verify.bsh
rename to src/it/sign-and-deploy-file-without-pom/verify.groovy
index 7019730..8df55c2 100644
--- a/src/it/sign-and-deploy-file-without-pom/verify.bsh
+++ b/src/it/sign-and-deploy-file-without-pom/verify.groovy
@@ -18,25 +18,18 @@
  * under the License.
  */
 
-import java.io.*;
+def buildLog = new File( basedir, "build.log" )
+assert buildLog.text.contains( "BUILD SUCCESS" )
 
-File artifactDir = new File( basedir, "target/repo/org/apache/maven/its/gpg/sadfwop/test/1.0" );
-
-String[] expectedFiles = {
+def artifactDir = new File( basedir, "target/repo/org/apache/maven/its/gpg/sadfwop/test/1.0" )
+def expectedFiles = [
     "test-1.0.jar",
     "test-1.0.jar.asc",
     "test-1.0.pom",
     "test-1.0.pom.asc",
-};
+]
 
 for ( String expectedFile : expectedFiles )
 {
-    File file = new File( artifactDir, expectedFile );
-
-    System.out.println( "Checking for existence of " + file );
-
-    if ( !file.isFile() )
-    {
-        throw new Exception( "Missing file " + file );
-    }
+    assert new File( artifactDir, expectedFile ).isFile();
 }