Skip to content

Commit be45130

Browse files
committed
Log hostname in one statement
Signed-off-by: Sombrio <[email protected]>
1 parent 34f0c3a commit be45130

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Jenkinsfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
@Library('[email protected]') _
22

33
def logHostname() {
4-
def host = sh(returnStdout: true, script: 'hostname').trim()
5-
sh label: "Running on ${host}", script: "true"
4+
sh label: "Running on ${env.NODE_NAME}", script: "echo 'Node context established.'"
65
}
76

87
def baseTests(String image) {

0 commit comments

Comments
 (0)