GoogleCloudPlatform / appengine-plugins

A client Java library to manage App Engine Java applications for any project that performs App Engine Java application management. For example, the Maven, Gradle and Eclipse App Engine plugins, custom user tools, etc.
Apache License 2.0
41 stars 27 forks source link

chore: setup stage job in Kokoro #969

Closed JoeWang1127 closed 11 months ago

JoeWang1127 commented 11 months ago

Strange error in unit test:

01:17:02:567 [INFO] Running com.google.cloud.tools.libraries.LibrariesTest
Error: 0:429 [ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 47.86 s <<< FAILURE! -- in com.google.cloud.tools.libraries.LibrariesTest
Error: 0:429 [ERROR] com.google.cloud.tools.libraries.LibrariesTest.testJson -- Time elapsed: 47.35 s <<< FAILURE!
java.lang.AssertionError: Could not reach https://cloud.google.com/phishing-protection/docs/apis expected:<200> but was:<404>
    at org.junit.Assert.fail(Assert.java:89)
    at org.junit.Assert.failNotEquals(Assert.java:835)
    at org.junit.Assert.assertEquals(Assert.java:647)
    at com.google.cloud.tools.libraries.LibrariesTest.assertReachable(LibrariesTest.java:134)
    at com.google.cloud.tools.libraries.LibrariesTest.assertApi(LibrariesTest.java:92)
    at com.google.cloud.tools.libraries.LibrariesTest.testJson(LibrariesTest.java:73)
JoeWang1127 commented 11 months ago

Stage job runs successfully (log).

suztomo commented 11 months ago

It didn't upload artifacts:

20:50:24:333 [INFO] --- deploy:3.1.1:deploy (default-deploy) @ appengine-plugins ---
20:50:24:352 [INFO] Skipping artifact deployment
JoeWang1127 commented 11 months ago

Now the log shows:

22:35:47:980 [INFO] --- nexus-staging:1.6.13:deploy (injected-nexus-deploy) @ appengine-plugins-core ---
22:35:47:993 [INFO] Performing deferred deploys (gathering into "/tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred")...
22:35:47:997 [INFO] Installing /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/appengine-plugins-core-0.10.1-SNAPSHOT.jar to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-plugins-core/0.10.1-SNAPSHOT/appengine-plugins-core-0.10.1-SNAPSHOT.jar
22:35:47:998 [INFO] Installing /tmpfs/src/github/appengine-plugins/appengine-plugins-core/pom.xml to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-plugins-core/0.10.1-SNAPSHOT/appengine-plugins-core-0.10.1-SNAPSHOT.pom
22:35:48:003 [INFO] Installing /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/appengine-plugins-core-0.10.1-SNAPSHOT-sources.jar to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-plugins-core/0.10.1-SNAPSHOT/appengine-plugins-core-0.10.1-SNAPSHOT-sources.jar
22:35:48:006 [INFO] Installing /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/appengine-plugins-core-0.10.1-SNAPSHOT-javadoc.jar to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-plugins-core/0.10.1-SNAPSHOT/appengine-plugins-core-0.10.1-SNAPSHOT-javadoc.jar
22:35:48:009 [INFO] Installing /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/appengine-plugins-core-0.10.1-SNAPSHOT.jar.asc to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-plugins-core/0.10.1-SNAPSHOT/appengine-plugins-core-0.10.1-SNAPSHOT.jar.asc
22:35:48:011 [INFO] Installing /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/appengine-plugins-core-0.10.1-SNAPSHOT.pom.asc to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-plugins-core/0.10.1-SNAPSHOT/appengine-plugins-core-0.10.1-SNAPSHOT.pom.asc
22:35:48:013 [INFO] Installing /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/appengine-plugins-core-0.10.1-SNAPSHOT-sources.jar.asc to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-plugins-core/0.10.1-SNAPSHOT/appengine-plugins-core-0.10.1-SNAPSHOT-sources.jar.asc
22:35:48:015 [INFO] Installing /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/appengine-plugins-core-0.10.1-SNAPSHOT-javadoc.jar.asc to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-plugins-core/0.10.1-SNAPSHOT/appengine-plugins-core-0.10.1-SNAPSHOT-javadoc.jar.asc
22:35:48:017 [INFO] Execution skipped to the last project...

and

22:39:48:274 [INFO] --- nexus-staging:1.6.13:deploy (injected-nexus-deploy) @ appengine-maven-plugin ---
22:39:48:276 [INFO] Performing deferred deploys (gathering into "/tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred")...
22:39:48:277 [INFO] Installing /tmpfs/src/github/appengine-plugins/app-maven-plugin/target/appengine-maven-plugin-2.5.1-SNAPSHOT.jar to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-maven-plugin/2.5.1-SNAPSHOT/appengine-maven-plugin-2.5.1-SNAPSHOT.jar
22:39:48:278 [INFO] Installing /tmpfs/src/github/appengine-plugins/app-maven-plugin/pom.xml to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-maven-plugin/2.5.1-SNAPSHOT/appengine-maven-plugin-2.5.1-SNAPSHOT.pom
22:39:48:293 [INFO] Installing /tmpfs/src/github/appengine-plugins/app-maven-plugin/target/appengine-maven-plugin-2.5.1-SNAPSHOT-sources.jar to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-maven-plugin/2.5.1-SNAPSHOT/appengine-maven-plugin-2.5.1-SNAPSHOT-sources.jar
22:39:48:295 [INFO] Installing /tmpfs/src/github/appengine-plugins/app-maven-plugin/target/appengine-maven-plugin-2.5.1-SNAPSHOT-javadoc.jar to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-maven-plugin/2.5.1-SNAPSHOT/appengine-maven-plugin-2.5.1-SNAPSHOT-javadoc.jar
22:39:48:297 [INFO] Installing /tmpfs/src/github/appengine-plugins/app-maven-plugin/target/appengine-maven-plugin-2.5.1-SNAPSHOT.jar.asc to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-maven-plugin/2.5.1-SNAPSHOT/appengine-maven-plugin-2.5.1-SNAPSHOT.jar.asc
22:39:48:299 [INFO] Installing /tmpfs/src/github/appengine-plugins/app-maven-plugin/target/appengine-maven-plugin-2.5.1-SNAPSHOT.pom.asc to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-maven-plugin/2.5.1-SNAPSHOT/appengine-maven-plugin-2.5.1-SNAPSHOT.pom.asc
22:39:48:301 [INFO] Installing /tmpfs/src/github/appengine-plugins/app-maven-plugin/target/appengine-maven-plugin-2.5.1-SNAPSHOT-sources.jar.asc to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-maven-plugin/2.5.1-SNAPSHOT/appengine-maven-plugin-2.5.1-SNAPSHOT-sources.jar.asc
22:39:48:303 [INFO] Installing /tmpfs/src/github/appengine-plugins/app-maven-plugin/target/appengine-maven-plugin-2.5.1-SNAPSHOT-javadoc.jar.asc to /tmpfs/src/github/appengine-plugins/appengine-plugins-core/target/nexus-staging/deferred/com/google/cloud/tools/appengine-maven-plugin/2.5.1-SNAPSHOT/appengine-maven-plugin-2.5.1-SNAPSHOT-javadoc.jar.asc
22:39:48:305 [INFO] Deploying remotely...
22:39:48:305 [INFO] Bulk deploying locally gathered artifacts from directory: 
22:39:48:305 [INFO]  * Bulk deploying locally gathered snapshot artifacts
22:44:29:083 [INFO]  * Bulk deploy of locally gathered snapshot artifacts finished.
22:44:29:083 [INFO] Remote deploy finished with success.