Hello,
Yes, first check this. For inline scripts use @node.name@ format, and for “external” scripts you can use the $RD_NODE_NAME format.
Check the following job definition example:
- defaultTab: nodes description: '' executionEnabled: true id: 5452edfc-eed3-466a-8934-2ae748635543 loglevel: INFO name: NodeName nodeFilterEditable: false nodefilters: dispatch: excludePrecedence: true keepgoing: false rankOrder: ascending successOnEmptyNodeFilter: false threadcount: '1' filter: .* nodesSelectedByDefault: true plugins: ExecutionLifecycle: {} scheduleEnabled: true sequence: commands: - autoSecureInput: 'false' fileExtension: .sh interpreterArgsQuoted: false passSecureInput: 'false' script: echo @node.name@ scriptInterpreter: /bin/bash keepgoing: false strategy: node-first uuid: 5452edfc-eed3-466a-8934-2ae748635543Regards.