我不确定我是否表达清楚了。
这就是我想要检查的。
假设几天前有人部署了一个新的 .ear 文件,该文件更改了应用程序的版本。我想测试它。
答案1
我发现最好的方法是使用此命令。
history | grep "deploy"
答案2
对我来说,最好的方法是通过 server.logs,
cat server.lo* | grep -B 1 "was successfully deployed"
[2024-01-18T00:10:42.804+0000] [Payara 5.2022.5] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=110 _ThreadName=admin-thread-pool::admin-listener(3)] [timeMillis: 1705536642804] [levelValue: 800] [[
HelloWorld-release-2.7.0.1-prod was successfully deployed in 11,927 milliseconds.]]
--
[2024-01-18T00:19:25.424+0000] [Payara 5.2022.5] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=170 _ThreadName=admin-thread-pool::admin-listener(4)] [timeMillis: 1705537165424] [levelValue: 800] [[
HelloWorld-release-2.7.1.0-prod was successfully deployed in 6,680 milliseconds.]]
--
[2024-01-18T00:25:42.498+0000] [Payara 5.2022.5] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=83 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1705537542498] [levelValue: 800] [[
HelloWorld-release-2.7.1.1-prod was successfully deployed in 7,834 milliseconds.]]
--
[2024-01-18T02:44:34.285+0000] [Payara 5.2022.5] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=187 _ThreadName=admin-thread-pool::admin-listener(5)] [timeMillis: 1705545874285] [levelValue: 800] [[
HelloWorld-release-2.7.2.0-prod was successfully deployed in 6,535 milliseconds.]]
--
[2024-01-25T13:53:24.681+0000] [Payara 5.2022.5] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=387 _ThreadName=admin-thread-pool::admin-listener(9)] [timeMillis: 1706190804681] [levelValue: 800] [[
HelloWorld-release-2.7.3.0-prod was successfully deployed in 6,725 milliseconds.]]