Skip to content

Commit 6354326

Browse files
committed
HHH-18912 - Fix ORM release process
1 parent 60ff229 commit 6354326

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,18 @@ String extractPropertyOrSetting(String name) {
7171
if ( project.hasProperty( name) ) {
7272
return project.property( name )
7373
}
74-
return System.getProperty( name )
74+
75+
def sysProp = System.getProperty( name )
76+
if ( sysProp != null ) {
77+
return sysProp
78+
}
79+
80+
def envProp = System.getenv( name )
81+
if ( envProp != null ) {
82+
return envProp
83+
}
84+
85+
return null
7586
}
7687

7788
nexusPublishing {

0 commit comments

Comments
 (0)