Yet one more reason to run ./gradlew build *before* pushing changes to
develop

You can automate this by adding a pre-push trigger to your git repo. This
will only do the push if the build succeeds:

echo "./gradlew build" > .git/hooks/pre-push
chmod u+x .git/hooks/pre-push

You can do git push --no-verify to skip the check if you want to.

-Dan

On Thu, Oct 13, 2016 at 9:07 AM, Jared Stewart <jstew...@pivotal.io> wrote:

> This file was accidentally committed in GEODE-999. Jinmei removed it from
> develop this morning after we saw the RAT failed last night.  I haven’t
> figured out yet what generated the file in the first place.
>
> > On Oct 13, 2016, at 9:04 AM, Anthony Baker <aba...@pivotal.io> wrote:
> >
> > Anyone know why this file was generated by the build?  It shows up in
> the rat report.
> >
> > !????? /home/jenkins/jenkins-slave/workspace/Geode-nightly/
> artifacts-jstewartgeode999/test/gemfire-jstewartgeode999-files.tgz
> >
> > Anthony
> >
> >
> >> Begin forwarded message:
> >>
> >> From: Apache Jenkins Server <jenk...@builds.apache.org>
> >> Subject: Build failed in Jenkins: Geode-nightly #621
> >> Date: October 13, 2016 at 8:36:21 AM PDT
> >> To: dev@geode.incubator.apache.org, jil...@pivotal.io, n...@pivotal.io
> >> Reply-To: dev@geode.incubator.apache.org
> >>
> >> See <https://builds.apache.org/job/Geode-nightly/621/changes>
> >>
> >> Changes:
> >>
> >> [jiliao] GEODE-1986: correctly set the flag indicating if cluster
> configuration
> >>
> >> [jiliao] GEODE-1979: refactor SecurityClusterConfig to remove the
> flakiness.
> >>
> >> [jiliao] GEODE-999: Converted from Firefox driver to PhantomJS driver
> to run
> >>
> >> [jiliao] GEODE-1966: Unauthorized users cannot access pulseVersion
> details
> >>
> >> [jiliao] GEODE-1532: Fix Pulse Clickjacking vuln.
> >>
> >> [nnag] GEODE-1978: Slowing down the receivers
> >>
> >> ------------------------------------------
> >> [...truncated 407 lines...]
> >> :geode-rebalancer:jar
> >> :geode-rebalancer:javadoc
> >> :geode-rebalancer:javadocJar
> >> :geode-rebalancer:sourcesJar
> >> :geode-rebalancer:signArchives SKIPPED
> >> :geode-wan:jar
> >> :geode-wan:javadoc
> >> :geode-wan:javadocJar
> >> :geode-wan:sourcesJar
> >> :geode-wan:signArchives SKIPPED
> >> :geode-web:javadoc UP-TO-DATE
> >> :geode-web:javadocJar
> >> :geode-web:sourcesJar
> >> :geode-web:war
> >> :geode-web:signArchives SKIPPED
> >> :geode-web-api:javadoc<https://builds.apache.org/job/Geode-
> nightly/ws/geode-web-api/src/main/java/org/apache/geode/
> rest/internal/web/controllers/CommonCrudController.java>:196: warning -
> @return tag has no arguments.
> >>
> >> 1 warning
> >> :geode-web-api:javadocJar
> >> :geode-web-api:sourcesJar
> >> :geode-web-api:war
> >> :geode-web-api:signArchives SKIPPED
> >> :geode-assembly:distTar
> >> :geode-assembly:distZip
> >> :geode-assembly:writeBuildInfo
> >> :geode-assembly:srcDistTar
> >> :geode-assembly:srcDistZip
> >> :geode-assembly:signArchives SKIPPED
> >> :geode-assembly:assemble
> >> :geode-assembly:compileTestJavaNote: Some input files use or override
> a deprecated API.
> >> Note: Recompile with -Xlint:deprecation for details.
> >> Note: Some input files use unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-assembly:processTestResources
> >> :geode-assembly:testClasses
> >> :geode-assembly:checkMissedTests
> >> :geode-assembly:installDist
> >> :geode-assembly:test
> >> :geode-assembly:distributedTest
> >> :geode-assembly:flakyTest
> >> :geode-assembly:integrationTest
> >> :geode-common:assemble
> >> :geode-common:compileTestJava
> >> :geode-common:processTestResources UP-TO-DATE
> >> :geode-common:testClasses
> >> :geode-common:checkMissedTests
> >> :geode-common:test
> >> :geode-common:distributedTest
> >> :geode-common:flakyTest
> >> :geode-common:integrationTest
> >> :geode-core:assemble
> >> :geode-core:checkMissedTests
> >> :geode-core:test
> >> :geode-core:distributedTest
> >> :geode-core:flakyTest
> >> :geode-core:integrationTest
> >> :geode-cq:assemble
> >> :geode-cq:compileTestJavaNote: Some input files use or override a
> deprecated API.
> >> Note: Recompile with -Xlint:deprecation for details.
> >> Note: Some input files use unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-cq:processTestResources
> >> :geode-cq:testClasses
> >> :geode-cq:checkMissedTests
> >> :geode-cq:test
> >> :geode-cq:distributedTest
> >> :geode-cq:flakyTest
> >> :geode-cq:integrationTest
> >> :geode-json:assemble
> >> :geode-json:compileTestJava UP-TO-DATE
> >> :geode-json:processTestResources UP-TO-DATE
> >> :geode-json:testClasses UP-TO-DATE
> >> :geode-json:checkMissedTests UP-TO-DATE
> >> :geode-json:test UP-TO-DATE
> >> :geode-json:distributedTest UP-TO-DATE
> >> :geode-json:flakyTest UP-TO-DATE
> >> :geode-json:integrationTest UP-TO-DATE
> >> :geode-junit:javadoc
> >> :geode-junit:javadocJar
> >> :geode-junit:sourcesJar
> >> :geode-junit:signArchives SKIPPED
> >> :geode-junit:assemble
> >> :geode-junit:compileTestJava
> >> :geode-junit:processTestResources UP-TO-DATE
> >> :geode-junit:testClasses
> >> :geode-junit:checkMissedTests
> >> :geode-junit:test
> >> :geode-junit:distributedTest
> >> :geode-junit:flakyTest
> >> :geode-junit:integrationTest
> >> :geode-lucene:assemble
> >> :geode-lucene:compileTestJavaNote: Some input files use or override a
> deprecated API.
> >> Note: Recompile with -Xlint:deprecation for details.
> >> Note: Some input files use unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-lucene:processTestResources
> >> :geode-lucene:testClasses
> >> :geode-lucene:checkMissedTests
> >> :geode-lucene:test
> >> :geode-lucene:distributedTest
> >> :geode-lucene:flakyTest
> >> :geode-lucene:integrationTest
> >> :geode-old-client-support:assemble
> >> :geode-old-client-support:compileTestJavaNote: <
> https://builds.apache.org/job/Geode-nightly/ws/geode-
> old-client-support/src/test/java/org/apache/geode/
> OldClientSupportDUnitTest.java> uses unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-old-client-support:processTestResources UP-TO-DATE
> >> :geode-old-client-support:testClasses
> >> :geode-old-client-support:checkMissedTests
> >> :geode-old-client-support:test
> >> :geode-old-client-support:distributedTest
> >> :geode-old-client-support:flakyTest
> >> :geode-old-client-support:integrationTest
> >> :geode-pulse:assemble
> >> :geode-pulse:compileTestJavaNote: <https://builds.apache.org/
> job/Geode-nightly/ws/geode-pulse/src/test/java/org/
> apache/geode/tools/pulse/tests/ui/PulseAbstractTest.java> uses or
> overrides a deprecated API.
> >> Note: Recompile with -Xlint:deprecation for details.
> >> Note: Some input files use unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-pulse:processTestResources
> >> :geode-pulse:testClasses
> >> :geode-pulse:checkMissedTests
> >> :geode-pulse:test
> >> :geode-pulse:distributedTest
> >> :geode-pulse:flakyTest
> >> :geode-pulse:integrationTest
> >> :geode-rebalancer:assemble
> >> :geode-rebalancer:compileTestJava
> >> :geode-rebalancer:processTestResources UP-TO-DATE
> >> :geode-rebalancer:testClasses
> >> :geode-rebalancer:checkMissedTests
> >> :geode-rebalancer:test
> >> :geode-rebalancer:distributedTest
> >> :geode-rebalancer:flakyTest
> >> :geode-rebalancer:integrationTest
> >> :geode-wan:assemble
> >> :geode-wan:compileTestJavaNote: Some input files use or override a
> deprecated API.
> >> Note: Recompile with -Xlint:deprecation for details.
> >> Note: Some input files use unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-wan:processTestResources
> >> :geode-wan:testClasses
> >> :geode-wan:checkMissedTests
> >> :geode-wan:test
> >> :geode-wan:distributedTest
> >> :geode-wan:flakyTest
> >> :geode-wan:integrationTest
> >> :geode-web:assemble
> >> :geode-web:compileTestJavaNote: Some input files use or override a
> deprecated API.
> >> Note: Recompile with -Xlint:deprecation for details.
> >> Note: Some input files use unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-web:processTestResources UP-TO-DATE
> >> :geode-web:testClasses
> >> :geode-web:checkMissedTests
> >> :geode-web:test
> >> :geode-web:distributedTest
> >> :geode-web:flakyTest
> >> :geode-web:integrationTest
> >> :geode-web-api:assemble
> >> :geode-web-api:compileTestJava UP-TO-DATE
> >> :geode-web-api:processTestResources UP-TO-DATE
> >> :geode-web-api:testClasses UP-TO-DATE
> >> :geode-web-api:checkMissedTests UP-TO-DATE
> >> :geode-web-api:test UP-TO-DATE
> >> :geode-web-api:distributedTest UP-TO-DATE
> >> :geode-web-api:flakyTest UP-TO-DATE
> >> :geode-web-api:integrationTest UP-TO-DATE
> >> :combineReports
> >> All test reports at <https://builds.apache.org/
> job/Geode-nightly/ws/build/reports/combined>
> >> :buildExamples
> >> :geode-examples:replicated:compileJavaNote: <https://builds.apache.org/
> job/Geode-nightly/ws/geode-examples/replicated/src/main/
> java/org/apache/geode/examples/replicated/Producer.java> uses unchecked
> or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-examples:replicated:processResources UP-TO-DATE
> >> :geode-examples:replicated:classes
> >> :geode-examples:replicated:jar
> >> :geode-examples:replicated:assemble
> >> :geode-examples:utils:compileJavaNote: <https://builds.apache.org/
> job/Geode-nightly/ws/geode-examples/utils/src/main/java/
> org/apache/geode/example/utils/ShellUtil.java> uses unchecked or unsafe
> operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-examples:utils:processResources UP-TO-DATE
> >> :geode-examples:utils:classes
> >> :geode-examples:utils:jar
> >> :geode-examples:replicated:compileTestJavaNote: Some input files use
> unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> :geode-examples:replicated:processTestResources
> >> :geode-examples:replicated:testClasses
> >> :geode-examples:replicated:testSLF4J: Failed to load class
> "org.slf4j.impl.StaticLoggerBinder".
> >> SLF4J: Defaulting to no-operation (NOP) logger implementation
> >> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> further details.
> >>
> >> :geode-examples:replicated:check
> >> :geode-examples:replicated:build
> >> :geode-examples:utils:assemble
> >> :geode-examples:utils:compileTestJava UP-TO-DATE
> >> :geode-examples:utils:processTestResources UP-TO-DATE
> >> :geode-examples:utils:testClasses UP-TO-DATE
> >> :geode-examples:utils:test UP-TO-DATE
> >> :geode-examples:utils:check UP-TO-DATE
> >> :geode-examples:utils:build
> >> :compileJava UP-TO-DATE
> >> :processResources UP-TO-DATE
> >> :classes UP-TO-DATE
> >> :jar
> >> :uploadArchives
> >> :extensions/geode-modules:uploadArchives
> >> :extensions/geode-modules-assembly:uploadArchives SKIPPED
> >> :extensions/geode-modules-session:uploadArchives
> >> :extensions/geode-modules-session-internal:uploadArchives
> >> :extensions/geode-modules-tomcat7:uploadArchives
> >> :extensions/geode-modules-tomcat8:uploadArchives
> >> :geode-assembly:uploadArchives SKIPPED
> >> :geode-common:uploadArchives
> >> :geode-core:uploadArchives
> >> :geode-cq:uploadArchives
> >> :geode-json:uploadArchives
> >> :geode-junit:uploadArchives
> >> :geode-lucene:uploadArchives
> >> :geode-old-client-support:uploadArchives
> >> :geode-pulse:uploadArchives
> >> :geode-rebalancer:uploadArchives
> >> :geode-wan:uploadArchives
> >> :geode-web:uploadArchives
> >> :geode-web-api:uploadArchives
> >>
> >> FAILURE: Build failed with an exception.
> >>
> >> * What went wrong:
> >> Execution failed for task ':rat'.
> >>> Found 1 files with unapproved/unknown licenses. See <
> https://builds.apache.org/job/Geode-nightly/621/
> artifact/build/reports/rat/rat-report.txt>
> >>
> >> * Try:
> >> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> >>
> >> BUILD FAILED
> >>
> >> Total time: 11 hrs 51 mins 20.953 secs
> >> Build step 'Invoke Gradle script' changed build result to FAILURE
> >> Build step 'Invoke Gradle script' marked build as failure
> >> Archiving artifacts
> >> Compressed 307.99 MB of artifacts by 50.4% relative to #620
> >> Recording test results
> >
>
>

Reply via email to