The source project is checked out to: <working-directory>/builds/<short-token>/<concurrent-id>/<namespace The caches for project are stored in <working-directory>/cache/<namespace>/<project-name>. Where: <working-directory> is the value of --working-directory as passed to the gitlab-runner run command stored on GitLab <project-name> is the name of the project as it is stored on GitLab To overwrite the <working-directory >/builds and <working-directory/cache specify the builds_dir and cache_dir options under the [[runners
true' run: npm i -g hexo-cli - name: install hexo dependencies run: npm i working-directory hexo/themes/butterfly/source/img/bg.png - name: install themes package run: npm i working-directory : hexo/themes/butterfly - name: check themes package run: ls -l working-directory: : hexo - name: hexo generate run: | hexo clean hexo g working-directory git remote add origin root@1.2.3.4:/git/blog.git git push --force origin master working-directory
run: npm i -g hexo-cli - name: install hexo dependencies run: npm i working-directory /themes/butterfly/source/img/bg.png - name: install themes package run: npm i working-directory : hexo/themes/butterfly - name: check themes package run: ls -l working-directory : hexo - name: hexo generate run: | hexo clean hexo g working-directory git remote add origin root@1.2.3.4:/git/blog.git git push --force origin master working-directory
问题复盘 首先要明确,CI 默认执行用户为 gitlab-runner $ ps aux | grep gitlab /usr/bin/gitlab-ci-multi-runner run --working-directory /systemd/system/gitlab-runner.service [Service] ExecStart=/usr/bin/gitlab-ci-multi-runner "run" "--working-directory configuration file to use –syslog true Specify if the service should integrate with system logging service –working-directory
# Install and run as service # /mnt/disk/gitlab-runner 工作目录需要提前建好,否则会报错 # --user=root 表示运行账户 # --working-directory 工作目录需要提前创建, 否则启动启动被错 sudo mkdir -p /mnt/disk/gitlab-runner sudo gitlab-runner install --user=root --working-directory
test-runner #注销所有 gitlab-runner unregister --all-runners # 服务管理 gitlab-runner install --user=gitlab-runner --working-directory =/home/gitlab-runner # --user指定将用于执行构建的用户 #`--working-directory 指定将使用**Shell** executor 运行构建时所有数据将存储在其中的根目录
hugo-version: latest extended: true - name: build content to public site working-directory bash run: npm i -g @cloudbase/cli - name: publish blog to tencent static site working-directory
在"Command"字段中输入打开终端并执行命令的命令,例如: bash Copy code gnome-terminal --working-directory=/path/to/0.7.0 –
test-runner #注销所有 gitlab-runner unregister --all-runners 服务管理 gitlab-runner install --user=gitlab-runner --working-directory =/home/gitlab-runner # --user指定将用于执行构建的用户 #`--working-directory 指定将使用**Shell** executor 运行构建时所有数据将存储在其中的根目录
/devel/setup.bash; roscore'"& #gnome-terminal --geometry=50x10+0+0 --title="roscore" --working-directory
问题复盘 首先要明确,CI 默认执行用户为 gitlab-runner $ ps aux | grep gitlab /usr/bin/gitlab-ci-multi-runner run --working-directory
gitlab-runner --shell /bin/bash 创建好了用户之后,接下来安装gitlab-runner sudo gitlab-runner install --user=gitlab-runner --working-directory
gitlab-runnerchmod +x /usr/local/bin/gitlab-runner2)启动gitlab-runner run --config /etc/gitlab-runner/config.toml --working-directory
安装并启动服务 sudo gitlab-runner install --user=xxx --working-directory=/home/xxx sudo gitlab-runner start
GEDIT_CURRENT_DOCUMENT_NAME name=`echo $fullname` dir=$GEDIT_CURRENT_DOCUMENT_DIR gnome-terminal --hide-menubar --working-directory
: /system.slice/gitlab-runner.service └─10297 /usr/lib/gitlab-runner/gitlab-runner run --working-directory
gitlab-runner" desc="GitLab Runner" user="" cmd=/usr/lib/gitlab-runner/gitlab-runner args=" "run" "--working-directory /etc/sysconfig/$name 修改–working-directory –user 两个字段 注册runner 连接上运行了gitlab-runner服务的机器(我们采用的是117.50
clustered file-system server”错误,可以尝试如下方式: 可能本机已经启动glusterfs服务,找到进程,kill掉 glusterd配置错误,找到glusterd.vol文件,并修改“working-directory 如本机的glusterd.vol路径为/usr/local/etc/glusterfs/glusterd.vol,则glusterd.vol中的working-directory一行设置为“working-directory
detect-changes if: needs.detect-changes.outputs.backend == 'true' defaults: run: working-directory workflow_call: inputs: node-version: required: true type: string working-directory required: false jobs: test: runs-on: ubuntu-latest defaults: run: working-directory test-frontend: uses: ./.github/workflows/reusable-test.yml with: node-version: '18' working-directory test-backend: uses: ./.github/workflows/reusable-test.yml with: node-version: '18' working-directory
transport.socket.keepalive-time 10 option transport-type socket // 这里是最核心的,是整个glusterfs集群的目录配置 option working-directory