Zhiguo Wu created AMBARI-25743: ---------------------------------- Summary: Build number cannot be resolved sometimes on Ambari Agent Key: AMBARI-25743 URL: https://issues.apache.org/jira/browse/AMBARI-25743 Project: Ambari Issue Type: Bug Reporter: Zhiguo Wu Attachments: image-2022-09-28-10-01-19-938.png, image-2022-09-28-10-04-34-754.png, image-2022-09-28-10-05-48-072.png
Variable `buildNumber` cannot be resolved sometimes on Ambari Agent after I run with `mvn -B clean install -DskipTests -Drat.skip=true`, but works fine on Ambari Server. {code:java} [root@ambari-server /]# ambari-agent start /var/lib/ambari-agent/bin/ambari-agent: line 23: buildNumber: unbound variable [root@ambari-server /]# cat /usr/sbin/ambari-server | grep "HASH" | head -1 HASH="8a1d1e72a59f96aa7c775ca101a44a60737b7002" [root@ambari-server /]# cat /var/lib/ambari-agent/bin/ambari-agent | grep "HASH" | head -1 HASH="${buildNumber}"{code} !image-2022-09-28-10-04-34-754.png! !image-2022-09-28-10-05-48-072.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org For additional commands, e-mail: issues-h...@ambari.apache.org