如何将Yaml回送到Bitbucket管道中的文件
我想在管道的开头写一个如何将Yaml回送到Bitbucket管道中的文件,yaml,bitbucket-pipelines,Yaml,Bitbucket Pipelines,我想在管道的开头写一个.bowerrc文件 echo '{ "allow_root": true }' > /root/.bowerrc 如何转义所有引号和冒号,使其在yaml中有效 image: java:8 pipelines: default: - step: script: - echo '{ "allow_root": true }' > /root/.bowerrc 只需删除空白 - npm install -g bo
.bowerrc
文件
echo '{ "allow_root": true }' > /root/.bowerrc
如何转义所有引号和冒号,使其在yaml中有效
image: java:8
pipelines:
default:
- step:
script:
- echo '{ "allow_root": true }' > /root/.bowerrc
只需删除空白
- npm install -g bower && echo '{"allow_root":true}' > /root/.bowerrc && npm install -g grunt-cli