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

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

                Author: ASF GitHub Bot
            Created on: 09/Apr/18 16:55
            Start Date: 09/Apr/18 16:55
    Worklog Time Spent: 10m 
      Work Description: alanmyrvold closed pull request #5022: Do not merge, 
test [BEAM-3938] Publish nightly snapshot with gradle
URL: https://github.com/apache/beam/pull/5022
 
 
   

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_PostCommit_Java_ValidatesRunner_Flink.groovy 
b/.test-infra/jenkins/job_beam_PostCommit_Java_ValidatesRunner_Flink.groovy
index b9faeea6cff..af9855adc89 100644
--- a/.test-infra/jenkins/job_beam_PostCommit_Java_ValidatesRunner_Flink.groovy
+++ b/.test-infra/jenkins/job_beam_PostCommit_Java_ValidatesRunner_Flink.groovy
@@ -19,7 +19,7 @@
 import common_job_properties
 
 // This job runs the suite of ValidatesRunner tests against the Flink runner.
-job('beam_PostCommit_Java_ValidatesRunner_Flink') {
+job('beam_PostCommit_Java_ValidatesRunner_Flink_Gradle') {
   description('Runs the ValidatesRunner suite on the Flink runner.')
 
   // Set common parameters.
diff --git a/.test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy 
b/.test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy
index 2e1f40d1bca..32e4acc2621 100644
--- a/.test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy
+++ b/.test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy
@@ -44,6 +44,11 @@ mavenJob('beam_Release_NightlySnapshot') {
       false,
       'd...@beam.apache.org')
 
+  common_job_properties.enablePhraseTriggeringFromPullRequest(
+      delegate,
+      'mvn clean deploy',
+      'Run Maven Publish')
+
   // Maven goals for this job.
   goals('''\
       clean deploy \
diff --git a/build_rules.gradle b/build_rules.gradle
index 77a794ca1c2..5710c22c3a8 100644
--- a/build_rules.gradle
+++ b/build_rules.gradle
@@ -335,6 +335,11 @@ ext.applyJavaNature = {
     repositories {
       maven {
         url project.properties["distMgmtSnapshotsUrl"] ?: 
"https://repository.apache.org/content/repositories/snapshots";
+        println "!!! asfNexusUsername=${asfNexusUsername}"
+        credentials {
+          username=asfNexusUsername
+          password=asfNexusPassword
+        }
       }
     }
   }


 

----------------------------------------------------------------
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: 89014)
    Time Spent: 1h 50m  (was: 1h 40m)

> Gradle publish task should authenticate when run from jenkins
> -------------------------------------------------------------
>
>                 Key: BEAM-3938
>                 URL: https://issues.apache.org/jira/browse/BEAM-3938
>             Project: Beam
>          Issue Type: Sub-task
>          Components: build-system
>            Reporter: Alan Myrvold
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> ./gradlew publish should be able to write to 
> [https://repository.apache.org/content/repositories/snapshots] when run from 
> jenkins, as the maven 
> [job_beam_Release_NightlySnapshot.groovy|https://github.com/apache/beam/blob/master/.test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy]
>  does.



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

Reply via email to