0
Q
在詹金斯
A
回答
3
我確認,你可以使用EnvInject插件用Groovy腳本:
這裏是Groovy腳本:
// Generate a global BUILD_ID_LONG variable with date and time
// =======================================
TimeZone.setDefault(TimeZone.getTimeZone('UTC'))
def now = new Date()
def map = [BUILD_ID_LONG: now.format("yyyyMMdd_HHmm")]
return map
接下來,您可以在構建步驟中使用$ {BUILD_ID_LONG}變量。
相關問題
- 1. 在詹金斯
- 2. 在詹金斯
- 3. 在詹金斯
- 4. 在詹金斯
- 5. 在詹金斯
- 6. 了在詹金斯
- 7. 對詹金斯
- 8. 與詹金斯
- 9. 詹金斯
- 10. 詹金斯 - j_acegi_security_check
- 11. 詹金斯Subversion
- 12. 對詹金斯
- 13. 從詹金斯
- 14. 從詹金斯
- 15. 詹金斯:java.io.NotSerializableException:groovy.util.slurpersupport.NodeChild
- 16. 如何在詹金斯管道Deployit配置在詹金斯
- 17. 托斯卡和詹金斯
- 18. 如何詹金斯
- 19. REST API詹金斯
- 20. 如何詹金斯
- 21. 集成詹金斯
- 22. 詹金斯SSH AgentForwarding
- 23. 使用詹金斯
- 24. 詹金斯和JUnit
- 25. Bitbucket webhook詹金斯
- 26. 詹金斯錯誤
- 27. 詹金斯和Git?
- 28. 錯誤:詹金斯
- 29. 詹金斯或SVNNotify
- 30. 訪問詹金斯
很多很多謝謝。作品 –
不客氣:) –