Jenkins build is back to normal : brooklyn-server-master-docker #138

2018-09-25 Thread Apache Jenkins Server
See 




Build failed in Jenkins: brooklyn-master-build-docker-pipeline #4

2018-09-25 Thread Apache Jenkins Server
See 


--
[...truncated 6.65 MB...]
2018-09-25 23:32:25,139 WARN  - Task[ssh: List iptables rules]@pK39tOsU was 
never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,139 WARN  - Task[ssh: Inserting iptables rules]@jEqGvhkf 
was never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,139 WARN  - Task[ssh: using urandom instead of 
random]@RyNN1xEQ was never submitted; did the code create it and forget to run 
it? ('cancel' the task to suppress this message)
2018-09-25 23:32:25,140 WARN  - Task[ssh: List iptables rules]@IiZK3AgP was 
never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,140 WARN  - Task[ssh: Inserting iptables rules]@wM629WdG 
was never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,140 WARN  - Task[ssh: using urandom instead of 
random]@FY1KTsJk was never submitted; did the code create it and forget to run 
it? ('cancel' the task to suppress this message)
2018-09-25 23:32:25,140 WARN  - Task[ssh: List iptables rules]@xb08Jo25 was 
never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,140 WARN  - Task[ssh: Inserting iptables rules]@cppUasvB 
was never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,140 WARN  - Task[ssh: using urandom instead of 
random]@oVvNEzfi was never submitted; did the code create it and forget to run 
it? ('cancel' the task to suppress this message)
2018-09-25 23:32:25,140 WARN  - Task[ssh: List iptables rules]@ubAI4gCp was 
never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,140 WARN  - Task[ssh: using urandom instead of 
random]@mmPpMkWD was never submitted; did the code create it and forget to run 
it? ('cancel' the task to suppress this message)
2018-09-25 23:32:25,141 WARN  - Task[ssh: List iptables rules]@xtV7gkj0 was 
never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,141 WARN  - Task[ssh: Inserting iptables rules]@LIKxPdVL 
was never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,141 WARN  - Task[ssh: using urandom instead of 
random]@HFJNeshG was never submitted; did the code create it and forget to run 
it? ('cancel' the task to suppress this message)
2018-09-25 23:32:25,141 WARN  - Task[ssh: List iptables rules]@orE3Xn4d was 
never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,141 WARN  - Task[ssh: Inserting iptables rules]@xzAh4UmM 
was never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,141 WARN  - Task[ssh: List iptables rules]@zTY0ssUj was 
never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,141 WARN  - Task[ssh: Inserting iptables rules]@RHUfqMAc 
was never submitted; did the code create it and forget to run it? ('cancel' the 
task to suppress this message)
2018-09-25 23:32:25,141 WARN  - Task[ssh: using urandom instead of 
random]@xbKfs2Dc was never submitted; did the code create it and forget to run 
it? ('cancel' the task to suppress this message)
Tests run: 198, Failures: 11, Errors: 0, Skipped: 0, Time elapsed: 32.16 sec 
<<< FAILURE! - in TestSuite
testMode(org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest)  
Time elapsed: 0.969 sec  <<< FAILURE!
java.lang.IllegalStateException: Cannot insert user=AzureDiamond: this config 
bag has been sealed and is now immutable.
at 
org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest.testMode(DefaultConnectivityResolverTest.java:200)

testMode(org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest)  
Time elapsed: 0.124 sec  <<< FAILURE!
java.lang.IllegalStateException: Cannot insert user=AzureDiamond: this config 
bag has been sealed and is now immutable.
at 
org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest.testMode(DefaultConnectivityResolverTest.java:200)

testMode(org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest)  
Time elapsed: 0.125 sec  <<< FAILURE!
java.lang.IllegalStateException: Cannot insert user=AzureDiamond: this config 
bag has been sealed and is now immutable.
at 
org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest.testMode(DefaultConnectivityResolverTest.java

Build failed in Jenkins: brooklyn-client-master-docker #23

2018-09-25 Thread Apache Jenkins Server
See 


--
[...truncated 209.17 KB...]
at 
org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at 
org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at 
org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.(LocalManagementContext.java:184)
at 
org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.(LocalManagementContext.java:163)
at 
org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.(LocalManagementContext.java:149)
at 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at 
org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at 
org.apache.felix.framework.cache.BundleCache.(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-25 19:18:07,430 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-25 19:18:07,432 INFO  - TESTNG SKIPPED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() 
finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: 
BundleException: Error creating bundle cache.
at 
org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at 
org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at 
org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at 
org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at 
org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.(LocalManagementContext.java:184)
at 
org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.(LocalManagementContext.java:163)
at 
org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.(LocalManagementContext.java:149)
at 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at 
org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at 
org.apache.felix.framework.cache.BundleCache.(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-25 19:18:07,433 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterClass 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-25 19:18:07,438 INFO  - Added external config supplier named 
'brooklyn-demo-sample': 
org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@4d722ac9
ERROR: Unable to create cache directory: 
/var/maven/.brooklyn/osgi/cache/hOGDTgai
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at 
org.apache.felix.framework.cache.BundleCache.(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at 
org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at 
org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at 
org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at 
org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.(LocalManagementContext.java:184)
at 
org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.(LocalManagementContext.java:163)
at 
org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.(Loca

Jenkins build is back to normal : brooklyn-dist-master-docker #67

2018-09-25 Thread Apache Jenkins Server
See 




Build failed in Jenkins: brooklyn-master-build-docker-pipeline #3

2018-09-25 Thread Apache Jenkins Server
See 


--
[...truncated 6.80 MB...]
2018-09-25 14:54:48,655 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.location.jclouds.JcloudsTemplateOptionsStubbedTest.testTemplateOption()
2018-09-25 14:54:48,659 INFO  - Creating VM google-compute-engine:us-central1-a 
in JcloudsLocation[google-compute-engine:us-central1-a:stub-identity@a5s67jyun7]
2018-09-25 14:54:48,660 WARN  - Cannot check imageChooser status for 
google-compute-engine:us-central1-a due to manually supplied black-box 
TemplateBuilder; it is recommended to use a PortableTemplateBuilder if you 
supply a TemplateBuilder
2018-09-25 14:54:48,668 WARN  - No context entity found in config or current 
task
2018-09-25 14:54:48,676 INFO  - Using host-and-port=173.194.32.123:22 and 
user=root when connecting to {id=myid, status=RUNNING, loginPort=22, 
privateAddresses=[172.168.10.11], publicAddresses=[173.194.32.123], 
loginUser=myuser}
2018-09-25 14:54:48,681 INFO  - Creating PortForwardManager(scope=global)
2018-09-25 14:54:48,685 WARN  - Using DEPRECATED flag OPEN_IPTABLES (will not 
be supported in future versions) for 
SshMachineLocation[173.194.32.123:root@173.194.32.123/173.194.32.123:22(id=mufvlzx7s6)]
 at 
JcloudsLocation[google-compute-engine:us-central1-a:stub-identity@a5s67jyun7]
2018-09-25 14:54:48,688 INFO  - Finished VM google-compute-engine:us-central1-a 
creation: root@173.194.32.123/173.194.32.123:22 ready after 28ms (semaphore 
obtained in 0ms;{image={id=us-central1-a/bogus-image, 
providerId=gce-image-provider, name=image, location={scope=REGION, 
id=us-central1-a, description=us-central1-a, parent=google-compute-engine}, 
os={family=ubuntu, arch=paravirtual, version=1.0, description=ubuntu, 
is64Bit=true}, description=description, version=1.0, status=AVAILABLE, 
loginUser=root}, hardware={id=n1-standard-1, providerId=google-compute-engine, 
processors=[{cores=1.0, speed=1234.0}], ram=3750, 
supportsImage=Predicates.alwaysTrue()}, location={scope=REGION, 
id=us-central1-a, description=us-central1-a, parent=google-compute-engine}, 
options={scriptPresent=true, userMetadata={Name=brooklyn-pfm9fc-egbo, 
brooklyn-user=}}} template built in 8ms; {id=myid, status=RUNNING, 
loginPort=22, privateAddresses=[172.168.10.11], 
publicAddresses=[173.194.32.123]} provisioned in 0ms; 
SshMachineLocation[173.194.32.123:root@173.194.32.123/173.194.32.123:22(id=mufvlzx7s6)]
 connection usable in 11ms; and os customized in 9ms - point /dev/random to 
urandom, open iptables)
2018-09-25 14:54:48,688 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.location.jclouds.JcloudsTemplateOptionsStubbedTest.testTemplateOption()
 finished in 33 ms
2018-09-25 14:54:48,688 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.location.jclouds.AbstractJcloudsStubbedUnitTest.tearDown()
2018-09-25 14:54:48,688 INFO  - Releasing machine 
SshMachineLocation[173.194.32.123:root@173.194.32.123/173.194.32.123:22(id=mufvlzx7s6)]
 in 
JcloudsLocation[google-compute-engine:us-central1-a:stub-identity@a5s67jyun7], 
instance id myid
2018-09-25 14:54:48,690 INFO  - Attempted release of unknown machine 
SshMachineLocation[173.194.32.123:root@173.194.32.123/173.194.32.123:22(id=mufvlzx7s6)]
 in 
JcloudsLocation[google-compute-engine:us-central1-a:stub-identity@a5s67jyun7]
2018-09-25 14:54:48,690 INFO  - Released machine 
SshMachineLocation[173.194.32.123:root@173.194.32.123/173.194.32.123:22(id=mufvlzx7s6)]:
 total time 1ms (semaphore obtained in 0ms; node destroyed in 0ms)
2018-09-25 14:54:48,691 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.location.jclouds.AbstractJcloudsStubbedUnitTest.tearDown() 
finished in 3 ms
2018-09-25 14:54:48,800 INFO  - TESTNG 
===
Surefire test
Tests run: 198, Failures: 11, Skips: 0
===
Tests run: 198, Failures: 11, Errors: 0, Skipped: 0, Time elapsed: 32.743 sec 
<<< FAILURE! - in TestSuite
testMode(org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest)  
Time elapsed: 0.876 sec  <<< FAILURE!
java.lang.IllegalStateException: Cannot insert user=AzureDiamond: this config 
bag has been sealed and is now immutable.
at 
org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest.testMode(DefaultConnectivityResolverTest.java:200)

testMode(org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest)  
Time elapsed: 0.127 sec  <<< FAILURE!
java.lang.IllegalStateException: Cannot insert user=AzureDiamond: this config 
bag has been sealed and is now immutable.
at 
org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest.testMode(DefaultConnectivityResolverTest.java:200)

testMode(org.apache.brooklyn.location.jclouds.DefaultConnectivityResolverTest)  
Time elapsed: 0.171 sec  

Build failed in Jenkins: brooklyn-master-build-docker-pipeline #2

2018-09-25 Thread Apache Jenkins Server
See 


--
[...truncated 31.15 KB...]
Unpacking libgcc-6-dev:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package gcc-6.
Preparing to unpack .../33-gcc-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking gcc-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package gcc.
Preparing to unpack .../34-gcc_4%3a6.3.0-4_amd64.deb ...
Unpacking gcc (4:6.3.0-4) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../35-libc-dev-bin_2.24-11+deb9u3_amd64.deb ...
Unpacking libc-dev-bin (2.24-11+deb9u3) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../36-linux-libc-dev_4.9.110-3+deb9u4_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.9.110-3+deb9u4) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../37-libc6-dev_2.24-11+deb9u3_amd64.deb ...
Unpacking libc6-dev:amd64 (2.24-11+deb9u3) ...
Selecting previously unselected package libstdc++-6-dev:amd64.
Preparing to unpack .../38-libstdc++-6-dev_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libstdc++-6-dev:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package g++-6.
Preparing to unpack .../39-g++-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking g++-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package g++.
Preparing to unpack .../40-g++_4%3a6.3.0-4_amd64.deb ...
Unpacking g++ (4:6.3.0-4) ...
Selecting previously unselected package git-core.
Preparing to unpack .../41-git-core_1%3a2.11.0-3+deb9u3_all.deb ...
Unpacking git-core (1:2.11.0-3+deb9u3) ...
Selecting previously unselected package golang-1.7-src.
Preparing to unpack .../42-golang-1.7-src_1.7.4-2_amd64.deb ...
Unpacking golang-1.7-src (1.7.4-2) ...
Selecting previously unselected package golang-1.7-go.
Preparing to unpack .../43-golang-1.7-go_1.7.4-2_amd64.deb ...
Unpacking golang-1.7-go (1.7.4-2) ...
Selecting previously unselected package golang-src.
Preparing to unpack .../44-golang-src_2%3a1.7~5_amd64.deb ...
Unpacking golang-src (2:1.7~5) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../45-golang-go_2%3a1.7~5_amd64.deb ...
Unpacking golang-go (2:1.7~5) ...
Selecting previously unselected package liblzo2-2:amd64.
Preparing to unpack .../46-liblzo2-2_2.08-1.2+b2_amd64.deb ...
Unpacking liblzo2-2:amd64 (2.08-1.2+b2) ...
Selecting previously unselected package libarchive13:amd64.
Preparing to unpack .../47-libarchive13_3.2.2-2_amd64.deb ...
Unpacking libarchive13:amd64 (3.2.2-2) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../48-libdpkg-perl_1.18.25_all.deb ...
Unpacking libdpkg-perl (1.18.25) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../49-libfile-fcntllock-perl_0.22-3+b2_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3+b2) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../50-libltdl7_2.4.6-2_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-2) ...
Selecting previously unselected package libltdl-dev:amd64.
Preparing to unpack .../51-libltdl-dev_2.4.6-2_amd64.deb ...
Unpacking libltdl-dev:amd64 (2.4.6-2) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../52-zlib1g-dev_1%3a1.2.8.dfsg-5_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-5) ...
Selecting previously unselected package libpng-dev:amd64.
Preparing to unpack .../53-libpng-dev_1.6.28-1_amd64.deb ...
Unpacking libpng-dev:amd64 (1.6.28-1) ...
Selecting previously unselected package libpng-tools.
Preparing to unpack .../54-libpng-tools_1.6.28-1_amd64.deb ...
Unpacking libpng-tools (1.6.28-1) ...
Selecting previously unselected package librpm3.
Preparing to unpack .../55-librpm3_4.12.0.2+dfsg1-2_amd64.deb ...
Unpacking librpm3 (4.12.0.2+dfsg1-2) ...
Selecting previously unselected package librpmbuild3.
Preparing to unpack .../56-librpmbuild3_4.12.0.2+dfsg1-2_amd64.deb ...
Unpacking librpmbuild3 (4.12.0.2+dfsg1-2) ...
Selecting previously unselected package librpmsign3.
Preparing to unpack .../57-librpmsign3_4.12.0.2+dfsg1-2_amd64.deb ...
Unpacking librpmsign3 (4.12.0.2+dfsg1-2) ...
Selecting previously unselected package libtool.
Preparing to unpack .../58-libtool_2.4.6-2_all.deb ...
Unpacking libtool (2.4.6-2) ...
Selecting previously unselected package make.
Preparing to unpack .../59-make_4.1-9.1_amd64.deb ...
Unpacking make (4.1-9.1) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../60-manpages-dev_4.10-2_all.deb ...
Unpacking manpages-dev (4.10-2) ...
Selecting previously unselected package nasm.
Preparing to unpack .../61-nasm_2.12.01-1+b1_amd64.deb ...
Unpacking nasm (2.12.01-1+b1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../62-pkg-config_0.29-4+b1_amd64.deb ...
Unpacking pkg-config (0.29-4+b1) ...
Selecting previously unselected package rpm-common.
Preparing to

[GitHub] brooklyn pull request #21: Jenkins: use pipeline, and don’t bind-mount .m2

2018-09-25 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/brooklyn/pull/21


---


[GitHub] brooklyn issue #21: Jenkins: use pipeline, and don’t bind-mount .m2

2018-09-25 Thread aledsage
Github user aledsage commented on the issue:

https://github.com/apache/brooklyn/pull/21
  
Merging now, to test build.


---


[GitHub] brooklyn pull request #21: Jenkins: use pipeline, and don’t bind-mount .m2

2018-09-25 Thread aledsage
GitHub user aledsage opened a pull request:

https://github.com/apache/brooklyn/pull/21

Jenkins: use pipeline, and don’t bind-mount .m2

Copies the configuration approach in 
https://github.com/apache/brooklyn-library/blob/master/Jenkinsfile, to be used 
by 
https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-master-build-docker-pipeline/

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aledsage/brooklyn jenkins-pipeline

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/brooklyn/pull/21.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #21


commit d1280c84bb88ccb9b99ccaf3faa0ce0583b36a61
Author: Aled Sage 
Date:   2018-09-25T14:21:49Z

Jenkins: use pipeline, and don’t bind-mount .m2




---


[GitHub] brooklyn-server pull request #1001: improve CollectionMerger to take a confi...

2018-09-25 Thread ahgittin
GitHub user ahgittin opened a pull request:

https://github.com/apache/brooklyn-server/pull/1001

improve CollectionMerger to take a configurable list merge function

simple extension but useful when lists need special treatment cc @aledsage 

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/ahgittin/brooklyn-server merge-with-function

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/brooklyn-server/pull/1001.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1001


commit e8427f7fa938f76eb75f0dc9d478d27a4f575ccd
Author: Alex Heneveld 
Date:   2018-09-25T14:20:30Z

improve CollectionMerger to take a configurable list merge function




---


[GitHub] brooklyn-library pull request #162: DO NOT MERGE - for testing PR builds

2018-09-25 Thread aledsage
Github user aledsage closed the pull request at:

https://github.com/apache/brooklyn-library/pull/162


---


Re: Empire-db build problems <-- brooklyn-master-build-docker_ws-cleanup workspace left behind

2018-09-25 Thread Aled Sage

// removing bui...@apache.org to save them this chatter

Hi all,

I've reconfigured the builds for brooklyn-library so that it does not 
bind-mount [1] the jenkins ${HOME}/.m2 directory from the jenkins host, 
when running the build/tests in the container.


I've also switched it to use Jenkins pipeline, so it actually uses the 
Jenkinsfile [2] that Thomas added to the repo back in November! There 
are two new builds configured:


https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-library-master-docker-pipeline/
https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-library-pull-requests-pipeline

Once we're happy with these, we should disable (or perhaps delete) the 
old build configurations:


https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-library-master-docker/
https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-library-pull-requests/

My next steps are:

1. Disable the old build configurations.
2. Reconfigure the other brooklyn repos (and build configurations) to
   follow the pattern used in brooklyn-library.
3. Monitor the builds, to see if this is enough to fix the problems we
   were seeing.
   (however, we still bind-mount the writeable workspace directory in
   the container, so there is still room for improvement I think).

Please shout if you have any comments, or think we should take this in a 
different direction instead.


Aled

[1] https://docs.docker.com/storage/bind-mounts/#use-a-read-only-bind-mount
[2] https://github.com/apache/brooklyn-library/blob/master/Jenkinsfile


On 24/09/2018 15:20, Aled Sage wrote:

Hi Chris, all,

Thomas has just pointed me at 
https://issues.apache.org/jira/browse/INFRA-16417, in which you recommend:


"The problem is the bind mount for .m2 and permissions conflicts
between the docker
image and jenkins. Please don't use a bind mount for filesystems
you intend to write to.
It will make the build run a bit longer since it has to download
the artifacts within the
container, but it will prevent you from having problems and
conflicts with the
jenkins .m2 directory."

Apologies for us not running with this advice previously - I'm looking 
into how we could do this.


Are there any good example configurations of other Apache projects 
building and running tests (ideally using maven) in docker containers, 
on apache jenkins slaves?


Aled


On 21/09/2018 10:03, Aled Sage wrote:

Hi all,

Do any brooklyn folk know what the 
`brooklyn-master-build-docker_ws-cleanup_.*` workspaces are for, and 
why they are not being cleaned up?


It sounds like this bug in ws-cleanup-plugin [1]. It was fixed, but 
then folk reported that they were still experiencing the same problem 
[2].


A workaround described in [3] is:

  ws-cleanup is leaking workspaces because the dynamic nodes are 
unavailable at the time
  the dispose is ran. I've installed a cron which is run every 1/2/h 
which is removing
  ws-cleanup folders that aren't modified the last hour on ovh docker 
hosts.


I'm not sure what we could do on the Brooklyn side.

---
Looking in the console output of our brooklyn-master-build-docker 
jobs, I see #700 [4] says at the very start:


  Building remotely on H24 (ubuntu xenial) in workspace 
/home/jenkins/jenkins-slave/workspace/brooklyn-master-build-docker

  [WS-CLEANUP] Deleting project workspace...
  [WS-CLEANUP] Done

In contrast, builds #702 [5] doesn't have the line `[WS-CLEANUP] 
Done`. Does that mean it will have left behind one of these 
directories perhaps?


Looking at [6], it looks like we only keep a history of 5 builds in 
jenkins. We therefore should really not have 28 workspace directories 
on the server H24!


If it might be a problem with ws-cleanup having permissions to delete 
the workspace, could it be related to the way we mount the workspace 
as a volume in the docker container?


  docker run -i --rm -v /home/jenkins:/usr/home
  -v 
/home/jenkins/jenkins-slave/workspace/brooklyn-master-build-docker/.m2:/root/.m2 
\
  -v 
/home/jenkins/jenkins-slave/workspace/brooklyn-master-build-docker:/usr/build 
\
-w /usr/build brooklyn:latest mvn clean install -s 
/usr/home/.m2/settings.xml


Aled

[1] https://issues.jenkins-ci.org/browse/JENKINS-24824
[2] https://issues.jenkins-ci.org/browse/JENKINS-53579
[3] https://jira.nuxeo.com/browse/NXBT-2205
[4] 
https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-master-build-docker/700/consoleFull
[5] 
https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-master-build-docker/700/consoleFull

[6] https://builds.apache.org/job/brooklyn-master-build-docker/


On 20/09/2018 20:20, Chris Lambertus wrote:





On Sep 20, 2018, at 11:51 AM, Dave Brondsema  
wrote:


Moving to builds@

I'm seeing this type of disk error on Allura builds that have used 
H27 and H24

today.
Here’s the raw usage output from H24. Not sure what’s going on with 
those Brooklyn jobs. CC to dev@brooklyn so they can have a look.




root@asf924:/home/jenkins/jen

[GitHub] brooklyn-library issue #162: DO NOT MERGE - for testing PR builds

2018-09-25 Thread asfgit
Github user asfgit commented on the issue:

https://github.com/apache/brooklyn-library/pull/162
  

Refer to this link for build results (access rights to CI server needed): 
https://builds.apache.org/job/brooklyn-library-pull-requests-pipeline/5/



---


[GitHub] brooklyn-library issue #162: DO NOT MERGE - for testing PR builds

2018-09-25 Thread aledsage
Github user aledsage commented on the issue:

https://github.com/apache/brooklyn-library/pull/162
  
retest this please


---


[GitHub] brooklyn-library issue #162: DO NOT MERGE - for testing PR builds

2018-09-25 Thread aledsage
Github user aledsage commented on the issue:

https://github.com/apache/brooklyn-library/pull/162
  
retest this please


---


[GitHub] brooklyn-library issue #162: DO NOT MERGE - for testing PR builds

2018-09-25 Thread asfgit
Github user asfgit commented on the issue:

https://github.com/apache/brooklyn-library/pull/162
  

Refer to this link for build results (access rights to CI server needed): 
https://builds.apache.org/job/brooklyn-library-pull-requests-pipeline/4/



---


Build failed in Jenkins: brooklyn-library-pull-requests-pipeline #3

2018-09-25 Thread Apache Jenkins Server
See 


--
[...truncated 3.54 MB...]
2018-09-25 11:57:00,627 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.cassandra.NonNegTokenGeneratorTest.testReturnsNullWhenGrowingClusterUnknownAmount()
2018-09-25 11:57:00,628 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.cassandra.NonNegTokenGeneratorTest.testReturnsNullWhenGrowingClusterUnknownAmount()
 finished in 1 ms
2018-09-25 11:57:00,629 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.entity.nosql.cassandra.PosNegTokenGeneratorTest.setUp()
2018-09-25 11:57:00,629 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.entity.nosql.cassandra.PosNegTokenGeneratorTest.setUp() 
finished in 1 ms
2018-09-25 11:57:00,629 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.cassandra.PosNegTokenGeneratorTest.testGeneratesInitialTokens()
2018-09-25 11:57:00,630 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.cassandra.PosNegTokenGeneratorTest.testGeneratesInitialTokens()
 finished in 1 ms
2018-09-25 11:57:00,630 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.entity.nosql.cassandra.PosNegTokenGeneratorTest.setUp()
2018-09-25 11:57:00,630 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.entity.nosql.cassandra.PosNegTokenGeneratorTest.setUp() 
finished in 0 ms
2018-09-25 11:57:00,631 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.cassandra.PosNegTokenGeneratorTest.testGetTokenForReplacementNode()
2018-09-25 11:57:00,631 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.cassandra.PosNegTokenGeneratorTest.testGetTokenForReplacementNode()
 finished in 0 ms
2018-09-25 11:57:00,632 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testCreateFromExistingConfig()
2018-09-25 11:57:00,636 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testCreateFromExistingConfig()
 finished in 5 ms
2018-09-25 11:57:00,636 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testCreateFromScratch()
2018-09-25 11:57:00,637 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testCreateFromScratch()
 finished in 1 ms
2018-09-25 11:57:00,638 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testFourthServerOfFourIsGivenVoteWhenAnotherServerIsRemoved()
2018-09-25 11:57:00,641 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testFourthServerOfFourIsGivenVoteWhenAnotherServerIsRemoved()
 finished in 3 ms
2018-09-25 11:57:00,641 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testMaximumNumberOfVotersIsLimited()
2018-09-25 11:57:00,643 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testMaximumNumberOfVotersIsLimited()
 finished in 1 ms
2018-09-25 11:57:00,643 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testMoreMembersThanMaximumAllowsRejected()
2018-09-25 11:57:00,644 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testMoreMembersThanMaximumAllowsRejected()
 finished in 1 ms
2018-09-25 11:57:00,644 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testPrimaryGivenVoteWhenLastInMemberList()
2018-09-25 11:57:00,645 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testPrimaryGivenVoteWhenLastInMemberList()
 finished in 1 ms
2018-09-25 11:57:00,645 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testRemoveMember()
2018-09-25 11:57:00,646 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testRemoveMember()
 finished in 1 ms
2018-09-25 11:57:00,647 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testRemoveNonExistentMemberHasNoEffect()
2018-09-25 11:57:00,647 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testRemoveNonExistentMemberHasNoEffect()
 finished in 0 ms
2018-09-25 11:57:00,648 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.nosql.mongodb.ReplicaSetConfigTest.testSetOfFourMembersHasThreeVoters()
2018-09-25 11:57:00,648 INFO  - TESTNG PASSED: "

[GitHub] brooklyn-library issue #162: DO NOT MERGE - for testing PR builds

2018-09-25 Thread asfgit
Github user asfgit commented on the issue:

https://github.com/apache/brooklyn-library/pull/162
  

Refer to this link for build results (access rights to CI server needed): 
https://builds.apache.org/job/brooklyn-library-pull-requests-pipeline/3/



---


[GitHub] brooklyn-library pull request #162: DO NOT MERGE - for testing PR builds

2018-09-25 Thread aledsage
GitHub user aledsage opened a pull request:

https://github.com/apache/brooklyn-library/pull/162

DO NOT MERGE - for testing PR builds



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aledsage/brooklyn-library test-pr

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/brooklyn-library/pull/162.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #162


commit 0012d2324d46ebcaeb5f48d0d4fe3de696bd
Author: Aled Sage 
Date:   2018-09-25T11:50:35Z

DO NOT MERGE - for testing PR builds




---


[GitHub] brooklyn-library issue #154: Use the settings.xml from Jenkins to deploy art...

2018-09-25 Thread asfgit
Github user asfgit commented on the issue:

https://github.com/apache/brooklyn-library/pull/154
  

Refer to this link for build results (access rights to CI server needed): 
https://builds.apache.org/job/brooklyn-library-pull-requests-pipeline/2/



---


[GitHub] brooklyn-library issue #154: Use the settings.xml from Jenkins to deploy art...

2018-09-25 Thread aledsage
Github user aledsage commented on the issue:

https://github.com/apache/brooklyn-library/pull/154
  
retest this please

(just using this to test 
https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-library-pull-requests-pipeline/)


---


[GitHub] brooklyn-library issue #154: Use the settings.xml from Jenkins to deploy art...

2018-09-25 Thread asfgit
Github user asfgit commented on the issue:

https://github.com/apache/brooklyn-library/pull/154
  
Can one of the admins verify this patch?


---


Build failed in Jenkins: brooklyn-library-master-docker #339

2018-09-25 Thread Apache Jenkins Server
See 


Changes:

[aled.sage] jenkins: add settings.xml for 'mvn deploy'

--
[...truncated 197.77 KB...]
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ 
brooklyn-software-cm-ansible ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (brooklyn-build-req) @ 
brooklyn-software-cm-ansible ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
brooklyn-software-cm-ansible ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
brooklyn-software-cm-ansible ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ 
brooklyn-software-cm-ansible ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to /usr/build/software/cm/ansible/target/classes
[INFO] 
/usr/build/software/cm/ansible/src/main/java/org/apache/brooklyn/entity/cm/ansible/AnsibleEntityImpl.java:
 Some input files use or override a deprecated API.
[INFO] 
/usr/build/software/cm/ansible/src/main/java/org/apache/brooklyn/entity/cm/ansible/AnsibleEntityImpl.java:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (verify-style) @ 
brooklyn-software-cm-ansible ---
[INFO] 
[INFO] --- maven-bundle-plugin:3.2.0:manifest (bundle-manifest) @ 
brooklyn-software-cm-ansible ---
[WARNING] Manifest 
org.apache.brooklyn:brooklyn-software-cm-ansible:jar:1.0.0-SNAPSHOT : Unused 
Export-Package instructions: [brooklyn.*] 
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
brooklyn-software-cm-ansible ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/usr/build/software/cm/ansible/src/test/resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ 
brooklyn-software-cm-ansible ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 
/usr/build/software/cm/ansible/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ 
brooklyn-software-cm-ansible ---

---
 T E S T S
---
Running org.apache.brooklyn.entity.cm.ansible.AnsibleEntityIntegrationTest
2018-09-25 11:32:07,181 INFO  - TESTNG RUNNING: Suite: "Surefire test" 
containing "0" Tests (config: null)
2018-09-25 11:32:07,211 INFO  - TESTNG 
===
Surefire test
Tests run: 0, Failures: 0, Skips: 0
===
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.12 sec - in 
org.apache.brooklyn.entity.cm.ansible.AnsibleEntityIntegrationTest

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ 
brooklyn-software-cm-ansible ---
[INFO] Building jar: 
/usr/build/software/cm/ansible/target/brooklyn-software-cm-ansible-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
brooklyn-software-cm-ansible ---
[INFO] 
[INFO] --- maven-jar-plugin:2.6:test-jar (test-jar-creation) @ 
brooklyn-software-cm-ansible ---
[INFO] Building jar: 
/usr/build/software/cm/ansible/target/brooklyn-software-cm-ansible-1.0.0-SNAPSHOT-tests.jar
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ 
brooklyn-software-cm-ansible ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: sandbox/**
[INFO] Exclude: release/**
[INFO] Exclude: README.md
[INFO] Exclude: **/.git/**
[INFO] Exclude: **/.gitignore
[INFO] Exclude: **/.repository/**
[INFO] Exclude: **/.idea/**
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/.classpath/**
[INFO] Exclude: **/.project
[INFO] Exclude: **/.settings/**
[INFO] Exclude: **/*.log
[INFO] Exclude: **/brooklyn*.log.*
[INFO] Exclude: **/target/**
[INFO] Exclude: **/nbactions.xml
[INFO] Exclude: **/nb-configuration.xml
[INFO] Exclude: ignored/**
[INFO] Exclude: LICENSE.md
[INFO] Exclude: .mvn/jvm.config
[INFO] Exclude: **/src/main/license/**
[INFO] Exclude: **/src/test/license/**
[INFO] Exclude: **/MANIFEST.MF
[INFO] Exclude: **/test-output/**
[INFO] Exclude: **/*.pem.pub
[INFO] Exclude: **/*.pem
[INFO] Exclude: **/*_rsa.pub
[INFO] Exclude: **/*_rsa
[INFO] Exclude: **/*.svg
[INFO] Exclude: **/*.crt
[INFO] Exclude: **/*.csr
[INFO] Exclude: **/*.key
[INFO] Exclude: **/*.key.org
[INFO] Exclude: **/*.psd
[INFO] Exclude: **/*.json
[INFO] Exclude: **/*.plxarc
[INFO] Exclude: 
**/src/test/resources/org/apache/brooklyn/entity/s

[GitHub] brooklyn-library pull request #161: jenkins: add settings.xml for 'mvn deplo...

2018-09-25 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/brooklyn-library/pull/161


---


[GitHub] brooklyn-library issue #161: jenkins: add settings.xml for 'mvn deploy'

2018-09-25 Thread asfgit
Github user asfgit commented on the issue:

https://github.com/apache/brooklyn-library/pull/161
  

Refer to this link for build results (access rights to CI server needed): 
https://builds.apache.org/job/brooklyn-library-pull-requests-pipeline/1/



---


[GitHub] brooklyn-library pull request #161: jenkins: add settings.xml for 'mvn deplo...

2018-09-25 Thread aledsage
GitHub user aledsage opened a pull request:

https://github.com/apache/brooklyn-library/pull/161

jenkins: add settings.xml for 'mvn deploy'



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aledsage/brooklyn-library 
fix-jenkins-build-pipeline

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/brooklyn-library/pull/161.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #161


commit 35612262cf8c782d2152049d8b865cdd094c03dd
Author: Aled Sage 
Date:   2018-09-25T11:26:29Z

jenkins: add settings.xml for 'mvn deploy'




---


Build failed in Jenkins: brooklyn-library-master-docker-pipeline #4

2018-09-25 Thread Apache Jenkins Server
See 


--
[...truncated 5.16 MB...]
Progress (4): 367/527 kB | 151/202 kB | 81/472 kB | 102/153 kBProgress (4): 
372/527 kB | 151/202 kB | 81/472 kB | 102/153 kBProgress (4): 372/527 kB | 
151/202 kB | 81/472 kB | 106/153 kBProgress (4): 376/527 kB | 151/202 kB | 
81/472 kB | 106/153 kBProgress (4): 376/527 kB | 155/202 kB | 81/472 kB | 
106/153 kBProgress (4): 376/527 kB | 155/202 kB | 85/472 kB | 106/153 
kBProgress (4): 380/527 kB | 155/202 kB | 85/472 kB | 106/153 kBProgress (4): 
380/527 kB | 159/202 kB | 85/472 kB | 106/153 kBProgress (4): 380/527 kB | 
159/202 kB | 85/472 kB | 111/153 kBProgress (4): 380/527 kB | 163/202 kB | 
85/472 kB | 111/153 kBProgress (4): 384/527 kB | 163/202 kB | 85/472 kB | 
111/153 kBProgress (4): 384/527 kB | 163/202 kB | 90/472 kB | 111/153 
kBProgress (4): 388/527 kB | 163/202 kB | 90/472 kB | 111/153 kBProgress (4): 
388/527 kB | 163/202 kB | 90/472 kB | 115/153 kBProgress (4): 392/527 kB | 
163/202 kB | 90/472 kB | 115/153 kBProgress (4): 392/527 kB | 167/202 kB | 
90/472 kB | 115/153 kBProgress (4): 392/527 kB | 167/202 kB | 94/472 kB | 
115/153 kBProgress (4): 392/527 kB | 167/202 kB | 94/472 kB | 119/153 
kBProgress (4): 392/527 kB | 171/202 kB | 94/472 kB | 119/153 kBProgress (4): 
392/527 kB | 171/202 kB | 94/472 kB | 123/153 kBProgress (4): 392/527 kB | 
171/202 kB | 98/472 kB | 123/153 kBProgress (4): 396/527 kB | 171/202 kB | 
98/472 kB | 123/153 kBProgress (4): 396/527 kB | 171/202 kB | 98/472 kB | 
127/153 kBProgress (4): 396/527 kB | 176/202 kB | 98/472 kB | 127/153 
kBProgress (4): 396/527 kB | 176/202 kB | 102/472 kB | 127/153 kBProgress (4): 
396/527 kB | 176/202 kB | 102/472 kB | 131/153 kBProgress (4): 400/527 kB | 
176/202 kB | 102/472 kB | 131/153 kBProgress (5): 400/527 kB | 176/202 kB | 
102/472 kB | 131/153 kB | 4.1/165 kBProgress (5): 400/527 kB | 176/202 kB | 
102/472 kB | 135/153 kB | 4.1/165 kBProgress (5): 400/527 kB | 176/202 kB | 
106/472 kB | 135/153 kB | 4.1/165 kBProgress (5): 400/527 kB | 180/202 kB | 
106/472 kB | 135/153 kB | 4.1/165 kBProgress (5): 400/527 kB | 180/202 kB | 
110/472 kB | 135/153 kB | 4.1/165 kBProgress (5): 400/527 kB | 180/202 kB | 
110/472 kB | 139/153 kB | 4.1/165 kBProgress (5): 400/527 kB | 180/202 kB | 
110/472 kB | 139/153 kB | 8.2/165 kBProgress (5): 400/527 kB | 184/202 kB | 
110/472 kB | 139/153 kB | 8.2/165 kBProgress (5): 404/527 kB | 184/202 kB | 
110/472 kB | 139/153 kB | 8.2/165 kBProgress (5): 404/527 kB | 188/202 kB | 
110/472 kB | 139/153 kB | 8.2/165 kBProgress (5): 404/527 kB | 188/202 kB | 
110/472 kB | 139/153 kB | 12/165 kB Progress (5): 404/527 kB | 188/202 kB | 
110/472 kB | 143/153 kB | 12/165 kBProgress (5): 404/527 kB | 188/202 kB | 
114/472 kB | 143/153 kB | 12/165 kBProgress (5): 404/527 kB | 188/202 kB | 
114/472 kB | 147/153 kB | 12/165 kBProgress (5): 404/527 kB | 188/202 kB | 
114/472 kB | 147/153 kB | 16/165 kBProgress (5): 404/527 kB | 192/202 kB | 
114/472 kB | 147/153 kB | 16/165 kBProgress (5): 408/527 kB | 192/202 kB | 
114/472 kB | 147/153 kB | 16/165 kBProgress (5): 408/527 kB | 192/202 kB | 
114/472 kB | 147/153 kB | 20/165 kBProgress (5): 408/527 kB | 196/202 kB | 
114/472 kB | 147/153 kB | 20/165 kBProgress (5): 408/527 kB | 196/202 kB | 
118/472 kB | 147/153 kB | 20/165 kBProgress (5): 408/527 kB | 196/202 kB | 
118/472 kB | 152/153 kB | 20/165 kBProgress (5): 408/527 kB | 196/202 kB | 
122/472 kB | 152/153 kB | 20/165 kBProgress (5): 408/527 kB | 200/202 kB | 
122/472 kB | 152/153 kB | 20/165 kBProgress (5): 413/527 kB | 200/202 kB | 
122/472 kB | 152/153 kB | 20/165 kBProgress (5): 413/527 kB | 200/202 kB | 
122/472 kB | 152/153 kB | 25/165 kBProgress (5): 417/527 kB | 200/202 kB | 
122/472 kB | 152/153 kB | 25/165 kBProgress (5): 417/527 kB | 202 kB | 122/472 
kB | 152/153 kB | 25/165 kBProgress (5): 417/527 kB | 202 kB | 126/472 kB | 
152/153 kB | 25/165 kBProgress (5): 417/527 kB | 202 kB | 126/472 kB | 153 kB | 
25/165 kBProgress (5): 417/527 kB | 202 kB | 131/472 kB | 153 kB | 25/165 
kBProgress (5): 421/527 kB | 202 kB | 131/472 kB | 153 kB | 25/165 kBProgress 
(5): 421/527 kB | 202 kB | 131/472 kB | 153 kB | 29/165 kBProgress (5): 425/527 
kB | 202 kB | 131/472 kB | 153 kB | 29/165 kBProgress (5): 425/527 kB | 202 kB 
| 135/472 kB | 153 kB | 29/165 kBProgress (5): 425/527 kB | 202 kB | 135/472 kB 
| 153 kB | 33/165 kBProgress (5): 425/527 kB | 202 kB | 139/472 kB | 153 kB | 
33/165 kBProgress (5): 429/527 kB | 202 kB | 139/472 kB | 153 kB | 33/165 
kBProgress (5): 429/527 kB | 202 kB | 143/472 kB | 153 kB | 33/165 kBProgress 
(5): 429/527 kB | 202 kB | 143/472 kB | 153 kB | 37/165 kBProgress (5): 433/527 
kB | 202 kB | 143/472 kB | 153 kB | 37/165 kBProgress (5): 433/527 kB | 202 kB 
| 143/472 kB | 153 kB | 41/165 kBProgress (5): 433/527 kB | 202 kB | 147/472 kB 
| 153 kB | 41/165 kBProgress (5): 433/527 kB | 202 kB | 147/472 k

Build failed in Jenkins: brooklyn-library-master-docker #338

2018-09-25 Thread Apache Jenkins Server
See 


Changes:

[aled.sage] jenkins: don't bind mount .m2

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on H33 (ubuntu xenial) in workspace 

[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Done
Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to H33
at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
at 
hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:955)
at hudson.FilePath.act(FilePath.java:1036)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.FilePath.mkdirs(FilePath.java:1213)
at 
hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at 
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at 
hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
java.nio.file.FileSystemException: 
: No space 
left on device
at 
sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at 
sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at hudson.FilePath.mkdirs(FilePath.java:3103)
at hudson.FilePath.access$900(FilePath.java:209)
at hudson.FilePath$Mkdirs.invoke(FilePath.java:1221)
at hudson.FilePath$Mkdirs.invoke(FilePath.java:1217)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2918)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused: java.io.IOException: remote file operation failed: 
 at 
hudson.remoting.Channel@151643a6:H33
at hudson.FilePath.act(FilePath.java:1043)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.FilePath.mkdirs(FilePath.java:1213)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Retrying after 10 seconds
Cloning the remote Git repository
Cloning repository https://git-wip-us.apache.org/repos/asf/brooklyn-library.git
 > git init  
 > # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/brooklyn-library.git
 > git --version # timeout=10
 > git fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/brooklyn-library.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/brooklyn-library.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # 
 > timeout=10
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/brooklyn-library.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/rep

[GitHub] brooklyn-library issue #160: jenkins: don't bind mount .m2

2018-09-25 Thread aledsage
Github user aledsage commented on the issue:

https://github.com/apache/brooklyn-library/pull/160
  
I've created 
https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-library-master-docker-pipeline/.
 The first run failed due to the rat check, which this PR fixes.

Merging this now, and will re-run the pipeline build.


---


[GitHub] brooklyn-library pull request #160: jenkins: don't bind mount .m2

2018-09-25 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/brooklyn-library/pull/160


---


Build failed in Jenkins: brooklyn-library-master-docker-pipeline #1

2018-09-25 Thread Apache Jenkins Server
See 


--
[...truncated 2.81 MB...]
2018-09-25 09:29:10,937 INFO  - GeoDns adding TestEntityImpl{id=z50ohczox4} at 
HostGeoInfo[East child with location: 100.0.0.2 at (0.0,60.0)]
2018-09-25 09:29:10,939 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.dns.AbstractGeoDnsServiceTest.testSubscribesToHostname()
 finished in 47 ms
2018-09-25 09:29:10,939 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.core.test.BrooklynMgmtUnitTestSupport.tearDown()
2018-09-25 09:29:10,946 INFO  - GeoDns removing reference to 
TestEntityImpl{id=wk1g2l2xn9}
2018-09-25 09:29:10,946 INFO  - GeoDns removing reference to 
TestEntityImpl{id=z50ohczox4}
2018-09-25 09:29:10,967 WARN  - Error calculating and setting aggregate for 
enricher Aggregator{uniqueTag=aggregator:fabric.size, running=true, 
entity=DynamicRegionsFabricImpl{id=oc524amjn0}, id=dfp0ayaf8r}
java.lang.IllegalStateException: Entity DynamicRegionsFabricImpl{id=oc524amjn0} 
is no longer managed, when trying to publish Sensor: fabric.size 
(java.lang.Integer) 0
at 
org.apache.brooklyn.core.entity.AbstractEntity$BasicSensorSupport.emitInternal(AbstractEntity.java:1082)
 ~[brooklyn-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
2018-09-25 09:29:10,972 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.core.test.BrooklynMgmtUnitTestSupport.tearDown() finished 
in 32 ms
2018-09-25 09:29:10,972 WARN  gTp2oSVu-[ndvxs9ba4i] Error invoking 
rescanEntities at DynamicGroupImpl{id=ndvxs9ba4i}: Entity 
DynamicGroupImpl{id=ndvxs9ba4i} is no longer managed; execution context not 
available
2018-09-25 09:29:10,974 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.webapp.FilenameToWebContextMapperTest.testInferFromUrl()
2018-09-25 09:29:10,976 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.webapp.FilenameToWebContextMapperTest.testInferFromUrl()
 finished in 2 ms
2018-09-25 09:29:10,977 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.webapp.FilenameToWebContextMapperTest.testOtherNames()
2018-09-25 09:29:10,977 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.webapp.FilenameToWebContextMapperTest.testOtherNames()
 finished in 0 ms
2018-09-25 09:29:10,978 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.webapp.FilenameToWebContextMapperTest.testRootNames()
2018-09-25 09:29:10,978 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.webapp.FilenameToWebContextMapperTest.testRootNames()
 finished in 0 ms
2018-09-25 09:29:10,978 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.proxy.ProxySslConfigTest.testFromMap()
2018-09-25 09:29:10,979 ERROR - Problem refreshing group membership: 
org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException:
 Error invoking rescanEntities at DynamicGroupImpl{id=ndvxs9ba4i}: Entity 
DynamicGroupImpl{id=ndvxs9ba4i} is no longer managed; execution context not 
available
org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException:
 Error invoking rescanEntities at DynamicGroupImpl{id=ndvxs9ba4i}
at 
org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException.propagate(EffectorUtils.java:316)
 ~[brooklyn-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
Caused by: java.util.concurrent.ExecutionException: 
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Entity 
DynamicGroupImpl{id=ndvxs9ba4i} is no longer managed; execution context not 
available
at 
org.apache.brooklyn.core.mgmt.internal.AbstractManagementContext.invokeEffectorMethodSync(AbstractManagementContext.java:370)
 ~[brooklyn-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
Caused by: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: 
at 
org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129) 
~[brooklyn-utils-common-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source) ~[na:na]
Caused by: java.lang.IllegalStateException: Entity 
DynamicGroupImpl{id=ndvxs9ba4i} is no longer managed; execution context not 
available
at 
org.apache.brooklyn.core.mgmt.internal.NonDeploymentManagementContext.getExecutionContext(NonDeploymentManagementContext.java:282)
 ~[brooklyn-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
2018-09-25 09:29:10,980 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.entity.proxy.ProxySslConfigTest.testFromMap() finished in 2 
ms
2018-09-25 09:29:10,981 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.entity.proxy.ProxySslConfigTest.testFromMapWithNullsAndDefaults()
2018-09-25 09:29:10,981 INFO  - TESTNG PASSED: "Surefire test" 

[GitHub] brooklyn-ui issue #73: Adding travis config file for an easier build

2018-09-25 Thread m4rkmckenna
Github user m4rkmckenna commented on the issue:

https://github.com/apache/brooklyn-ui/pull/73
  
Hi @Numerinico ... Thanks for the contribution have you signed an ICLA.

Also could you reach out to the mailing list as I believe this change will 
need to be discussed on there first.  
https://brooklyn.apache.org/community/mailing-lists.html


---


[GitHub] brooklyn-library issue #160: jenkins: don't bind mount .m2

2018-09-25 Thread aledsage
Github user aledsage commented on the issue:

https://github.com/apache/brooklyn-library/pull/160
  
@tbouron I suspect that the `Jenkinsfile` has no effect, and that it just 
uses the configuration in 
https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-library-master-docker/configure.
e.g. the most recent build 
(https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-library-master-docker/336/consoleFull)
 has a docker command that matches the `/configure` page rather than the 
Jenkinsfile.

Am I missing something?

I'm going to create a new job (`brooklyn-library-master-docker-pipeline`) 
to try to set it up to use the Jenkinsfile (i.e. use pipelines).


---


[GitHub] brooklyn-ui pull request #72: More constraints

2018-09-25 Thread ahgittin
Github user ahgittin commented on a diff in the pull request:

https://github.com/apache/brooklyn-ui/pull/72#discussion_r220107724
  
--- Diff: 
ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
 ---
@@ -275,20 +275,54 @@ function BlueprintService($log, $q, $sce, paletteApi, 
iconGenerator, dslService)
 return $q((resolve) => {
 if (entity.miscData.has('config')) {
 entity.miscData.get('config')
-.filter(config => config.constraints && 
Object.keys(config.constraints).length > 0)
+.filter(config => config.constraints && 
config.constraints.length > 0)
 .forEach(config => {
-for (let [key, constraint] of 
Object.entries(config.constraints) ) {
+for (let constraintO of config.constraints) {
 let message = null;
+let key = null, args = null;
+if (constraintO instanceof String) {
+key = constraintO;
+} else if (Object.keys(constraintO).length==1) 
{
+key = Object.keys(constraintO)[0];
+args = constraintO[key];
+} else {
+$log.warn("Unknown constraint object", 
constraintO);
+key = constraintO;
+}
+let val = (k) => entity.config.get(k || 
config.name);
+let isSet = (k) => entity.config.has(k || 
config.name) && angular.isDefined(val(k));
+let hasDefault = () => 
angular.isDefined(config.defaultValue);
 switch (key) {
 case 'Predicates.notNull()':
 case 'required':
-if 
(!angular.isDefined(config.defaultValue) && (!entity.config.has(config.name) || 
!angular.isDefined(entity.config.get(config.name {
+if (!isSet() && !hasDefault() && 
val()!='') {
+// "required" also means that it 
must not be the empty string
 message = 
`${config.name} is required`;
 }
 break;
 case 'regex':
-if (!entity.config.has(config.name) || 
!angular.isDefined(entity.config.get(config.name)) || !(new 
RegExp(constraint).test(entity.config.get(config.name {
-message = 
`${config.name} does not match the required format: 
${config.constraints.regex}`;
+if (isSet() && !(new 
RegExp(args).test(val))) {
--- End diff --

@aledsage you're asking what if the default value is invalid?  i think it 
would be weird to give a user error in that case.  it probably is an error, but 
on the upstream blueprint author's part, not the consumer's part.  so i think 
we shouldn't -- and we don't currently -- test the default value.


---


[GitHub] brooklyn-ui pull request #73: Adding travis config file for an easier build

2018-09-25 Thread Numerinico
GitHub user Numerinico opened a pull request:

https://github.com/apache/brooklyn-ui/pull/73

Adding travis config file for an easier build



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/Numerinico/brooklyn-ui master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/brooklyn-ui/pull/73.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #73


commit 1811d91b5620f3041c7396fba89e699b46d91156
Author: Nicolas B 
Date:   2018-09-24T15:36:08Z

Added travis file

commit 832a67fabef5aff55025ccc2c3f4a345fd051195
Author: Nicolas B 
Date:   2018-09-24T15:45:41Z

Exclude travis file from license checker

commit 755b39e83a6b8e88ef54cbc4ea0766474090e8b8
Author: Nicolas B 
Date:   2018-09-24T16:47:32Z

Added cache in travis

- maven cache
- node_modules cache




---


[GitHub] brooklyn-server issue #1000: Config constraints: add more tests

2018-09-25 Thread aledsage
Github user aledsage commented on the issue:

https://github.com/apache/brooklyn-server/pull/1000
  
retest this please

Jenkins failure was an environment problem I believe:
```
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags 
--progress git://github.com/apache/brooklyn-server.git 
+refs/pull/*:refs/remotes/origin/pr/*" returned status code 128:
```


---