You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2016/02/23 22:37:38 UTC
svn commit: r1731969 - in /maven/jenkins-seeding: ./ jobs/
jobs/maven-jenkins-seeding/ src/ src/main/ src/main/groovy/
src/main/groovy/org/ src/main/groovy/org/apache/
src/main/groovy/org/apache/maven/ src/main/groovy/org/apache/maven/jenkins/
src/main...
Author: khmarbaise
Date: Tue Feb 23 21:37:38 2016
New Revision: 1731969
URL: http://svn.apache.org/viewvc?rev=1731969&view=rev
Log:
A first step.
Added:
maven/jenkins-seeding/Dockerfile
maven/jenkins-seeding/build-docker.sh (with props)
maven/jenkins-seeding/config.xml
maven/jenkins-seeding/jobs/
maven/jenkins-seeding/jobs/maven-jenkins-seeding/
maven/jenkins-seeding/jobs/maven-jenkins-seeding/config.xml
maven/jenkins-seeding/jobs/maven-jenkins-seeding/nextBuildNumber
maven/jenkins-seeding/plugins.txt
maven/jenkins-seeding/src/
maven/jenkins-seeding/src/main/
maven/jenkins-seeding/src/main/groovy/
maven/jenkins-seeding/src/main/groovy/org/
maven/jenkins-seeding/src/main/groovy/org/apache/
maven/jenkins-seeding/src/main/groovy/org/apache/maven/
maven/jenkins-seeding/src/main/groovy/org/apache/maven/jenkins/
maven/jenkins-seeding/src/main/groovy/org/apache/maven/jenkins/create.groovy
maven/jenkins-seeding/src/main/resources/
maven/jenkins-seeding/src/main/resources/idea.gdsl
maven/jenkins-seeding/src/test/
maven/jenkins-seeding/src/test/groovy/
maven/jenkins-seeding/src/test/groovy/org/
maven/jenkins-seeding/src/test/groovy/org/apache/
maven/jenkins-seeding/src/test/groovy/org/apache/maven/
maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/
maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/ConfigurationTest.groovy
maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/FirstTest.groovy
maven/jenkins-seeding/src/test/resources/
maven/jenkins-seeding/src/test/resources/branchJobs.groovy
maven/jenkins-seeding/start-docker.sh (with props)
Modified:
maven/jenkins-seeding/pom.xml
Added: maven/jenkins-seeding/Dockerfile
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/Dockerfile?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/Dockerfile (added)
+++ maven/jenkins-seeding/Dockerfile Tue Feb 23 21:37:38 2016
@@ -0,0 +1,6 @@
+# 1.609.3 is the version on build.apache.org
+FROM jenkins:1.609.3
+MAINTAINER "khmarbaise@apache.org"
+COPY ./plugins.txt /usr/share/jenkins/ref/plugins.txt
+COPY ./config.xml /usr/share/jenkins/ref/config.xml
+RUN /usr/local/bin/plugins.sh /usr/share/jenkins/ref/plugins.txt
Added: maven/jenkins-seeding/build-docker.sh
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/build-docker.sh?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/build-docker.sh (added)
+++ maven/jenkins-seeding/build-docker.sh Tue Feb 23 21:37:38 2016
@@ -0,0 +1,4 @@
+#!/bin/bash
+# Build the Docker images which contains the plugins
+# and a pre-defined config.xml
+docker build --no-cache --rm=true -t jenkins-for-apache .
Propchange: maven/jenkins-seeding/build-docker.sh
------------------------------------------------------------------------------
svn:executable = *
Added: maven/jenkins-seeding/config.xml
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/config.xml?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/config.xml (added)
+++ maven/jenkins-seeding/config.xml Tue Feb 23 21:37:38 2016
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<hudson>
+ <disabledAdministrativeMonitors/>
+ <version>1.625.3</version>
+ <numExecutors>2</numExecutors>
+ <mode>NORMAL</mode>
+ <useSecurity>true</useSecurity>
+ <authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>
+ <securityRealm class="hudson.security.SecurityRealm$None"/>
+ <disableRememberMe>false</disableRememberMe>
+ <projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
+ <workspaceDir>${JENKINS_HOME}/workspace/${ITEM_FULLNAME}</workspaceDir>
+ <buildsDir>${ITEM_ROOTDIR}/builds</buildsDir>
+ <jdks/>
+ <viewsTabBar class="hudson.views.DefaultViewsTabBar"/>
+ <myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/>
+ <clouds/>
+ <quietPeriod>5</quietPeriod>
+ <scmCheckoutRetryCount>0</scmCheckoutRetryCount>
+ <views>
+ <hudson.model.AllView>
+ <owner class="hudson" reference="../../.."/>
+ <name>All</name>
+ <filterExecutors>false</filterExecutors>
+ <filterQueue>false</filterQueue>
+ <properties class="hudson.model.View$PropertyList"/>
+ </hudson.model.AllView>
+ </views>
+ <primaryView>All</primaryView>
+ <slaveAgentPort>50000</slaveAgentPort>
+ <label></label>
+ <nodeProperties/>
+ <globalNodeProperties/>
+ <noUsageStatistics>true</noUsageStatistics>
+</hudson>
Added: maven/jenkins-seeding/jobs/maven-jenkins-seeding/config.xml
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/jobs/maven-jenkins-seeding/config.xml?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/jobs/maven-jenkins-seeding/config.xml (added)
+++ maven/jenkins-seeding/jobs/maven-jenkins-seeding/config.xml Tue Feb 23 21:37:38 2016
@@ -0,0 +1,36 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <actions/>
+ <description></description>
+ <keepDependencies>false</keepDependencies>
+ <properties>
+ <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@1.8.4">
+ <maxConcurrentPerNode>0</maxConcurrentPerNode>
+ <maxConcurrentTotal>0</maxConcurrentTotal>
+ <throttleEnabled>false</throttleEnabled>
+ <throttleOption>project</throttleOption>
+ </hudson.plugins.throttleconcurrents.ThrottleJobProperty>
+ </properties>
+ <scm class="hudson.scm.NullSCM"/>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+ <triggers/>
+ <concurrentBuild>false</concurrentBuild>
+ <builders>
+ <javaposse.jobdsl.plugin.ExecuteDslScripts plugin="job-dsl@1.42">
+ <targets>**/create.groovy</targets>
+ <usingScriptText>false</usingScriptText>
+ <ignoreExisting>false</ignoreExisting>
+ <removedJobAction>DELETE</removedJobAction>
+ <removedViewAction>DELETE</removedViewAction>
+ <lookupStrategy>JENKINS_ROOT</lookupStrategy>
+ <additionalClasspath></additionalClasspath>
+ </javaposse.jobdsl.plugin.ExecuteDslScripts>
+ </builders>
+ <publishers/>
+ <buildWrappers>
+ <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.7.2"/>
+ </buildWrappers>
+</project>
\ No newline at end of file
Added: maven/jenkins-seeding/jobs/maven-jenkins-seeding/nextBuildNumber
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/jobs/maven-jenkins-seeding/nextBuildNumber?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/jobs/maven-jenkins-seeding/nextBuildNumber (added)
+++ maven/jenkins-seeding/jobs/maven-jenkins-seeding/nextBuildNumber Tue Feb 23 21:37:38 2016
@@ -0,0 +1 @@
+13
Added: maven/jenkins-seeding/plugins.txt
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/plugins.txt?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/plugins.txt (added)
+++ maven/jenkins-seeding/plugins.txt Tue Feb 23 21:37:38 2016
@@ -0,0 +1,17 @@
+nested-view:1.14
+timestamper:1.7.4
+credentials:1.24
+junit:1.10
+token-macro:1.12.1
+throttle-concurrents:1.8.4
+jacoco:1.0.19
+job-dsl:1.42
+config-file-provider:2.10.0
+testng-plugin:1.10
+# Subversion Plugin
+mapdb-api:1.0.6.0
+ssh-credentials:1.11
+ssh-slaves:1.10
+scm-api:1.0
+subversion:2.5.7
+build-timeout:1.16
Modified: maven/jenkins-seeding/pom.xml
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/pom.xml?rev=1731969&r1=1731968&r2=1731969&view=diff
==============================================================================
--- maven/jenkins-seeding/pom.xml (original)
+++ maven/jenkins-seeding/pom.xml Tue Feb 23 21:37:38 2016
@@ -1,25 +1,23 @@
<?xml version='1.0' encoding='UTF-8'?>
<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
-->
-<project
- xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -30,8 +28,12 @@ under the License.
<version>27</version>
</parent>
+ <properties>
+ <maven.compiler.target>1.7</maven.compiler.target>
+ <maven.compiler.source>1.7</maven.compiler.source>
+ </properties>
<groupId>org.apache.maven.jenkins</groupId>
- <artifactId>jenkins-seed</artifactId>
+ <artifactId>jenkins-seeding</artifactId>
<version>0.1.0-SNAPSHOT</version>
<dependencies>
@@ -43,8 +45,20 @@ under the License.
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
- <version>1.8.6</version>
+ <version>2.4.4</version>
</dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.12</version>
+ </dependency>
+
+<!-- <dependency> -->
+<!-- <groupId>org.spockframework</groupId> -->
+<!-- <artifactId>spock-core</artifactId> -->
+<!-- <version>1.0-groovy-2.4</version> -->
+<!-- <scope>test</scope> -->
+<!-- </dependency> -->
</dependencies>
<build>
@@ -52,21 +66,38 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <compilerId>groovy-eclipse-compiler</compilerId>
- </configuration>
+ <version>3.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.gmavenplus</groupId>
+ <artifactId>gmavenplus-plugin</artifactId>
+ <version>1.5</version>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy-eclipse-compiler</artifactId>
- <version>2.8.0-01</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy-eclipse-batch</artifactId>
- <version>2.1.8-01</version>
+ <artifactId>groovy-all</artifactId>
+ <version>2.4.4</version>
</dependency>
</dependencies>
+ <configuration>
+ <debug>false</debug>
+ <verbose>true</verbose>
+ <stacktrace>true</stacktrace>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>addSources</goal>
+ <goal>addTestSources</goal>
+ <goal>generateStubs</goal>
+ <goal>compile</goal>
+ <goal>testGenerateStubs</goal>
+ <goal>testCompile</goal>
+ <goal>removeStubs</goal>
+ <goal>removeTestStubs</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
Added: maven/jenkins-seeding/src/main/groovy/org/apache/maven/jenkins/create.groovy
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/src/main/groovy/org/apache/maven/jenkins/create.groovy?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/src/main/groovy/org/apache/maven/jenkins/create.groovy (added)
+++ maven/jenkins-seeding/src/main/groovy/org/apache/maven/jenkins/create.groovy Tue Feb 23 21:37:38 2016
@@ -0,0 +1,187 @@
+package org.apache.maven.jenkins
+
+import javaposse.jobdsl.dsl.helpers.LocalRepositoryLocation
+
+def testJobPrefix = 'jobdsl-';
+def disabledTheGeneratedJobsByDefault = true;
+
+def jdkVersions = ['JDK 1.7 (latest)','XXX']
+
+def mavenVersions = [
+ 'Maven 2.2.1',
+ 'Maven 3.0.5',
+ 'Maven 3.1.1',
+ 'Maven 3.2.5',
+ 'Maven 3.3.9'
+]
+
+
+mavenJob(testJobPrefix + 'dist-tool-plugin') {
+ description('''
+ daily check of Maven distribution packages to update
+ <a href="https://builds.apache.org/view/M-R/view/Maven/job/dist-tool-plugin/site/">report</a>
+ '''.stripIndent().trim()
+ )
+
+ logRotator {
+ // "Days to keep builds"
+ // daysToKeep(5)
+ // "Max # of builds to keep"
+ numToKeep(5)
+ // "Days to keep artifacts"
+ // artifactDaysToKeep(int artifactDaysToKeep)
+ // "Max # of builds to keep with artifacts"
+ // artifactNumToKeep(5)
+ }
+
+ jdk('JDK 1.7 (latest)')
+
+ disabled(disabledTheGeneratedJobsByDefault)
+
+ scm {
+ svn ('http://svn.apache.org/repos/asf/maven/sandbox/trunk/dist-tools/dist-tool-plugin')
+ }
+
+ triggers {
+ label('Ubuntu')
+
+ scm ('H * * * *')
+ cron ('H H * * *')
+ }
+
+ mavenInstallation ('Maven 3 (latest)')
+ mavenOpts ('-Xmx2g -Xms256m -XX:MaxPermSize=512m')
+
+ goals('-B -Preporting -Papache.snapshots -Dscreenshot=false clean install site')
+
+ publishers {
+ // Check if the logic is correct?
+ mailer('notifications@apache.maven.org', false, false)
+ }
+ wrappers {
+ timeout {
+ // after 30 minutes stop the build.
+ absolute (30)
+ failBuild()
+ writeDescription('Build failed due to timeout after {0} minutes')
+ }
+ }
+}
+
+
+
+mavenJob(testJobPrefix + 'maven-jxr') {
+
+ logRotator {
+ // "Days to keep builds"
+ // daysToKeep(5)
+ // "Max # of builds to keep"
+ numToKeep(10)
+ // "Days to keep artifacts"
+ // artifactDaysToKeep(int artifactDaysToKeep)
+ // "Max # of builds to keep with artifacts"
+ // artifactNumToKeep(5)
+ }
+
+ jdk('JDK 1.6 (latest)')
+
+ disabled(disabledTheGeneratedJobsByDefault)
+
+ scm {
+ svn ('http://svn.apache.org/repos/asf/maven/jxr/trunk')
+ }
+
+ triggers {
+ label('ubuntu')
+
+ scm ('*/10 * * * *')
+ cron ('H H * * *')
+ }
+
+ mavenInstallation ('Maven 3.0.5')
+ mavenOpts('-Xmx2g -Xms256m -XX:MaxPermSize=512m')
+ goals('clean install -B -U -e -fae -V -Prun-its')
+
+ localRepository(LocalRepositoryLocation.LOCAL_TO_EXECUTOR)
+
+ // Post Build Actions JIRA => !! Missing.
+
+ publishers {
+ // Check if the logic is correct?
+ mailer('notifications@apache.maven.org', false, true)
+ }
+ wrappers {
+ timeout {
+ // after 30 minutes stop the build.
+ absolute (30)
+ failBuild()
+ writeDescription('Build failed due to timeout after {0} minutes')
+ }
+ }
+}
+
+
+freeStyleJob(testJobPrefix + 'script-job') {
+ steps {
+ shell ('''
+ echo "Here I'am ${WORKSPACE}"
+ find . -type f -name "test*"
+ '''.stripIndent().trim()
+ )
+ }
+}
+// ------------ THE VIEWS -------------
+nestedView('A-D') {
+}
+nestedView('E-G') {
+}
+
+nestedView('M-R') {
+ configure { node ->
+ node / defaultView ('MINA')
+ }
+
+ views {
+ listView('MADlib') {
+ //
+ }
+ listView('MINA') {
+ //
+ }
+ listView('MRUnit') {
+ //
+ }
+ listView('Mahout') {
+ //
+ }
+
+ listView(testJobPrefix + 'Maven') {
+
+ description(
+ '<b>Apache <a href="http://maven.apache.org/" ' +
+ 'target="_blank"><img src="https://maven.apache.org/images/maven-logo-black-on-white.png" alt="Maven"/></a> Builds<b>'
+ )
+
+ jobs {
+ name (testJobPrefix + 'dist-tool-plugin')
+ name (testJobPrefix + 'maven-jxr')
+ name (testJobPrefix + 'script-job')
+ }
+ columns {
+ status()
+ weather()
+ name()
+ lastSuccess()
+ lastFailure()
+ }
+ }
+ }
+}
+
+nestedView('Groovy') {
+}
+nestedView('Incubator Projects') {
+}
+nestedView('Olingo') {
+}
+
Added: maven/jenkins-seeding/src/main/resources/idea.gdsl
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/src/main/resources/idea.gdsl?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/src/main/resources/idea.gdsl (added)
+++ maven/jenkins-seeding/src/main/resources/idea.gdsl Tue Feb 23 21:37:38 2016
@@ -0,0 +1,6 @@
+// enable DSL support in IDEA, see https://confluence.jetbrains.com/display/GRVY/Scripting+IDE+for+DSL+awareness
+
+def ctx = context(pathRegexp: /.*\/jobs\/.*groovy/)
+contributor(ctx, {
+ delegatesTo(findClass('javaposse.jobdsl.dsl.DslFactory'))
+})
\ No newline at end of file
Added: maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/ConfigurationTest.groovy
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/ConfigurationTest.groovy?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/ConfigurationTest.groovy (added)
+++ maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/ConfigurationTest.groovy Tue Feb 23 21:37:38 2016
@@ -0,0 +1,21 @@
+package org.apache.maven.jenkins
+
+import org.junit.Test
+
+import static org.junit.Assert.*
+
+class ConfigurationTest {
+
+ def folder = new File (System.getProperty( 'basedir'), "src/test/resources")
+
+ @Test
+ void testFirst() {
+ def config = new ConfigSlurper().parse( new File (folder, "branchjobs.groovy").text)
+ for (i in 0..config.jobs.size() -1 ) {
+ println config.jobs[i]
+ println " -> " + config.jobs[i]['name']
+ println " -> " + config.jobs[i]['branch']
+ println " -> " + config.jobs[i]['email']
+ }
+ }
+}
\ No newline at end of file
Added: maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/FirstTest.groovy
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/FirstTest.groovy?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/FirstTest.groovy (added)
+++ maven/jenkins-seeding/src/test/groovy/org/apache/maven/jenkins/FirstTest.groovy Tue Feb 23 21:37:38 2016
@@ -0,0 +1,26 @@
+package org.apache.maven.jenkins
+
+import javaposse.jobdsl.dsl.DslScriptLoader
+import javaposse.jobdsl.dsl.MemoryJobManagement
+
+import org.junit.Test
+
+import static org.junit.Assert.*
+
+class FirstTest {
+
+ def folder = new File (System.getProperty( 'basedir'))
+
+ @Test
+ void testFirst() {
+ MemoryJobManagement jm = new MemoryJobManagement();
+ def folder = new File (System.getProperty( 'basedir'));
+ def jobDSL = new File(folder, "src/main/groovy/org/apache/maven/jenkins/create.groovy");
+ DslScriptLoader.runDslEngine jobDSL.text, jm
+
+ jm.savedConfigs.each { String name, String xml ->
+ println "--- ${name} ---"
+ println xml
+ }
+ }
+}
\ No newline at end of file
Added: maven/jenkins-seeding/src/test/resources/branchJobs.groovy
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/src/test/resources/branchJobs.groovy?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/src/test/resources/branchJobs.groovy (added)
+++ maven/jenkins-seeding/src/test/resources/branchJobs.groovy Tue Feb 23 21:37:38 2016
@@ -0,0 +1,12 @@
+jobs = [
+ [
+ 'name':'first-branch',
+ 'branch':'/first-branch',
+ 'email':'email@test.de'
+ ],
+ [
+ 'name':'second-branch',
+ 'branch':'/second-branch',
+ 'email':'second@test.de'
+ ],
+]
Added: maven/jenkins-seeding/start-docker.sh
URL: http://svn.apache.org/viewvc/maven/jenkins-seeding/start-docker.sh?rev=1731969&view=auto
==============================================================================
--- maven/jenkins-seeding/start-docker.sh (added)
+++ maven/jenkins-seeding/start-docker.sh Tue Feb 23 21:37:38 2016
@@ -0,0 +1,16 @@
+#!/bin/bash
+# Run the container for testing.
+docker run --name jenkins-for-apache \
+ -v "$(pwd)/jobs":/var/jenkins_home/jobs \
+ -v "$(pwd)/workspace":/var/jenkins_home/workspace \
+ -v "/Users/kama/ws-git/javaee":/var/local/gitrepo \
+ -d \
+ -p 8080:8080 \
+ -p 50000:50000 \
+ --env JENKINS_SLAVE_AGENT_PORT=50000 \
+ --env JENKINS_OPTS=--httpPort=8080 \
+ --hostname jenkins-for-apache \
+ jenkins-for-apache
+#
+# --net bridge \
+# ip addr
Propchange: maven/jenkins-seeding/start-docker.sh
------------------------------------------------------------------------------
svn:executable = *