0
執行Shell,LIST = $(ls -1 dir_name/* rpm)已完成。如何傳遞LIST,使他們顯示在默認內容的內容或無論是可編輯的電子郵件通知的身體嗎?Jenkins:如何將字符串傳遞給電子郵件通知的主體
執行Shell,LIST = $(ls -1 dir_name/* rpm)已完成。如何傳遞LIST,使他們顯示在默認內容的內容或無論是可編輯的電子郵件通知的身體嗎?Jenkins:如何將字符串傳遞給電子郵件通知的主體
您可以使用InjectEnv plugin一些設置,如下面:
在詹金斯生成步驟(或交步驟),你可以使用$ MY_LIST變量:
+ echo build-failure-analyzer.xml buildtriggerbadge.xml cloudbees-plugin-gateway.xml com.cloudbees.dockerpublish.DockerBuilder.xml com.orctom.jenkins.plugin.globalpostscript.GlobalPostScript.xml com.tikal.jenkins.plugins.multijob.PhaseJobsConfig.xml config_project_creation.xml config.xml config.xml.old Connection Activity monitoring to slaves.log credentials.xml Download metadata.log envinject-plugin-configuration.xml envInject.xml Fingerprint cleanup.log hudson.maven.MavenModuleSet.xml hudson.model.UpdateCenter.xml hudson.plugins.copyartifact.TriggeredBuildSelector.xml hudson.plugins.git.GitSCM.xml hudson.plugins.git.GitTool.xml hudson.plugins.groovy.Groovy.xml hudson.plugins.logfilesizechecker.LogfilesizecheckerWrapper.xml
差不多。它位於Execute Shell中,我想設置參數,然後在電子郵件通知中使用該參數。 – user2569618
哦!現在我明白了。再次stackoverflow保存我。 – user2569618
不客氣:) –