You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "mdedetrich (via GitHub)" <gi...@apache.org> on 2023/08/07 14:18:39 UTC

[GitHub] [incubator-pekko-grpc] mdedetrich opened a new pull request, #144: Log incase of missing environment variables

mdedetrich opened a new pull request, #144:
URL: https://github.com/apache/incubator-pekko-grpc/pull/144

   Help debug what is going on


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko-grpc] pjfanning commented on a diff in pull request #144: Log incase of missing environment variables

Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning commented on code in PR #144:
URL: https://github.com/apache/incubator-pekko-grpc/pull/144#discussion_r1285959313


##########
gradle-plugin/build.gradle:
##########
@@ -51,13 +53,24 @@ publishing {
     }
 }
 
+def getEnvVariable(String value) {

Review Comment:
   to avoid confusion, the input variable could be called 'name' or 'envVariableName'



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko-grpc] mdedetrich commented on a diff in pull request #144: Log incase of missing environment variables

Posted by "mdedetrich (via GitHub)" <gi...@apache.org>.
mdedetrich commented on code in PR #144:
URL: https://github.com/apache/incubator-pekko-grpc/pull/144#discussion_r1285957905


##########
gradle-plugin/build.gradle:
##########
@@ -51,13 +53,24 @@ publishing {
     }
 }
 
+def getEnvVariable(String value) {
+    String envVar = System.getenv(value)
+    if (envVar == null)
+        project.logger.error("${value} is null")
+    else if (envVar.isEmpty())
+        project.logger.error("${value} is is empty")
+    else if (envVar.isBlank())
+        project.logger.error("${value} is is blank")
+    return envVar
+}
+
 nexusPublishing {
     repositories {
         sonatype {
-            nexusUrl.set(uri("https://repository.apache.org/service/local/"))
-            snapshotRepositoryUrl.set(uri("https://repository.apache.org/content/repositories/snapshots/"))
-            username = System.getenv("NEXUS_USER")
-            password = System.getenv("NEXUS_PW")
+            nexusUrl = uri("https://repository.apache.org/service/local/")

Review Comment:
   The `.set` was part of the kotlin DSL, shouldn't make a difference bet lets use the groovy dsl just not to make things more complicated



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko-grpc] mdedetrich merged pull request #144: Log incase of missing environment variables

Posted by "mdedetrich (via GitHub)" <gi...@apache.org>.
mdedetrich merged PR #144:
URL: https://github.com/apache/incubator-pekko-grpc/pull/144


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko-grpc] pjfanning commented on pull request #144: Log incase of missing environment variables

Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning commented on PR #144:
URL: https://github.com/apache/incubator-pekko-grpc/pull/144#issuecomment-1667974954

   > Is it safe?the passwd will shows in the log?
   
   the value printed is the env variable name - not its value


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko-grpc] mdedetrich commented on a diff in pull request #144: Log incase of missing environment variables

Posted by "mdedetrich (via GitHub)" <gi...@apache.org>.
mdedetrich commented on code in PR #144:
URL: https://github.com/apache/incubator-pekko-grpc/pull/144#discussion_r1285966835


##########
gradle-plugin/build.gradle:
##########
@@ -51,13 +53,24 @@ publishing {
     }
 }
 
+def getEnvVariable(String value) {

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko-grpc] He-Pin commented on pull request #144: Log incase of missing environment variables

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on PR #144:
URL: https://github.com/apache/incubator-pekko-grpc/pull/144#issuecomment-1667970703

   Is it safe?the passwd will shows in the log?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org