[ 
https://issues.apache.org/jira/browse/BEAM-3255?focusedWorklogId=89030&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-89030
 ]

ASF GitHub Bot logged work on BEAM-3255:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Apr/18 17:14
            Start Date: 09/Apr/18 17:14
    Worklog Time Spent: 10m 
      Work Description: lukecwik closed pull request #5057: [BEAM-3255] Move 
from maven to gradle with nightly builds
URL: https://github.com/apache/beam/pull/5057
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy 
b/.test-infra/jenkins/job_beam_Release_Gradle_NightlySnapshot.groovy
similarity index 51%
rename from .test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy
rename to .test-infra/jenkins/job_beam_Release_Gradle_NightlySnapshot.groovy
index 2e1f40d1bca..f86d4f60bfb 100644
--- a/.test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy
+++ b/.test-infra/jenkins/job_beam_Release_Gradle_NightlySnapshot.groovy
@@ -18,24 +18,16 @@
 
 import common_job_properties
 
-// This is the nightly snapshot build -- we use this to deploy a daily snapshot
-// to https://repository.apache.org/content/groups/snapshots/org/apache/beam.
-// Runs the postsubmit suite before deploying.
-mavenJob('beam_Release_NightlySnapshot') {
-  description('Runs a mvn clean deploy of the nightly snapshot.')
+// This creates the nightly snapshot build.
+// Into https://repository.apache.org/content/groups/snapshots/org/apache/beam.
+job('beam_Release_Gradle_NightlySnapshot') {
+  description('Publish a nightly snapshot.')
 
   // Execute concurrent builds if necessary.
   concurrentBuild()
 
-  // Set common parameters. Huge timeout because we really do need to
-  // run all the ITs and release the artifacts.
-  common_job_properties.setTopLevelMainJobProperties(
-      delegate,
-      'master',
-      240)
-
-  // Set maven paramaters.
-  common_job_properties.setMavenConfig(delegate)
+  // Set common parameters.
+  common_job_properties.setTopLevelMainJobProperties(delegate)
 
   // This is a post-commit job that runs once per day, not for every push.
   common_job_properties.setPostCommit(
@@ -44,18 +36,30 @@ mavenJob('beam_Release_NightlySnapshot') {
       false,
       'd...@beam.apache.org')
 
-  // Maven goals for this job.
-  goals('''\
-      clean deploy \
-      --batch-mode \
-      --errors \
-      --fail-at-end \
-      -P release,dataflow-runner \
-      -D skipITs=false \
-      -D integrationTestPipelineOptions=\'[ \
-        "--project=apache-beam-testing", \
-        "--tempRoot=gs://temp-storage-for-end-to-end-tests", \
-        "--runner=TestDataflowRunner" \
-      ]\'\
-  ''')
+
+  def gradle_switches = [
+    // Publish a snapshot build.
+    "-Ppublishing",
+    // Don't run tasks in parallel, currently the maven-publish/signing plugins
+    // cause build failures when run in parallel with messages like 'error 
snapshotting'
+    '--no-parallel',
+  ]
+  def gradle_command_line = './gradlew ' + gradle_switches.join(' ') + ' 
publish'
+
+  // Allows triggering this build against pull requests.
+  common_job_properties.enablePhraseTriggeringFromPullRequest(
+      delegate,
+      gradle_command_line,
+      'Run Gradle Publish')
+
+  steps {
+    gradle {
+      rootBuildScriptDir(common_job_properties.checkoutDir)
+      tasks('publish')
+      for (String gradle_switch : gradle_switches) {
+        switches(gradle_switch)
+      }
+    }
+  }
 }
+


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 89030)
    Time Spent: 2.5h  (was: 2h 20m)

> Update release process to use Gradle
> ------------------------------------
>
>                 Key: BEAM-3255
>                 URL: https://issues.apache.org/jira/browse/BEAM-3255
>             Project: Beam
>          Issue Type: Sub-task
>          Components: build-system
>            Reporter: Luke Cwik
>            Assignee: Alan Myrvold
>            Priority: Major
>             Fix For: Not applicable
>
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> This task is about configuring Gradle to generate pom's and artifacts 
> required to perform a release and update the nightly release snapshot Jenkins 
> jobs found here 
> https://github.com/apache/beam/blob/master/.test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy
> We will also require some integration tests to run against the released 
> nightly snapshot artifacts to ensure that what was built is valid.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to