我在Bitbucket repo中有一个闪亮的应用程序,我想运行,然后在管道中停止应用程序。我的bitbucket-pipelines.yml
image: rocker/verse:3.5.0
pipelines:
default:
- step:
script:
- cd /opt/atlassian/pipelines/agent/build
- Rscript -e 'install.packages(c("shiny", "googleAuthR", "dplyr",
"googleAnalyticsR", "knitr", "rmarkdown", "jsonlite"),
repos = "https://cran.rstudio.com/")'
- Rscript -e 'shiny::runApp(appDir = file.path("/opt/atlassian/pipelines/agent/build/", "app"))'
- Rscript -e 'shiny::stopApp()'
所有内容都成功加载和运行,但最后一行永远不会运行;管道位于shiny::runApp()
命令上:
管道只会让应用程序运行,直到我手动停止管道。
如何强制最终的shiny::stopApp()
运行并关闭应用程序,从而完成管道?
发布于 2018-08-16 04:08:32
尝试将运行应用程序命令更改为:
- Rscript -e 'shiny::runApp(appDir = file.path("/opt/atlassian/pipelines/agent/build/", "app"))' &
这将在一个单独的进程中启动run app命令。
https://stackoverflow.com/questions/51865528
复制相似问题