- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Maven 多模块项目。我创建了一个管道来清理和部署我的项目。当我运行管道时,我得到以下输出:
``Started by user XXXXX
Checking out git http://XXXX:9080/gara/gara-back-end.git into /var/jenkins_home/workspace/gara-bo@script to read Jenkinsfile
using credential XXXXXXXXXXX
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://XXXXXXX:9080/gara/gara-back-end.git # timeout=10
Fetching upstream changes from http://XXXXX:9080/gara/gara-back-end.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials
> git fetch --tags --force --progress http://XXXXXX:9080/gara/gara-back-end.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision c717022003b698421698238b13e1909f555172a0 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f XXXXXXXXXXXXXXX
Commit message: "Update Jenkinsfile"
> git rev-list --no-walk 7XXXXXXXXXXXXXXXXXXXXXXX # timeout=10
ERROR: /var/jenkins_home/workspace/gara-bo@script/Jenkinsfile not found
Finished: FAILURE``
为什么项目是在 gara-bo@script 而不是 gara-bo 下 checkout 的?在服务器上,我有两个文件夹:gara-bo 和 gara-bo@script
``gara-bo contains : Jenkinsfile pom.xml src target WEB-INF
gara-bo@script : gara-common gara-dao gara-model gara-service gara-web JenkinsFile pom.xml``
但是 gara-bo@script 中的文件只是符号链接(symbolic link),因为当我尝试读取 gara-bo@script 下的 JenkinsFile 的内容时,这是不可能的。
你知道吗,请问我该如何更正?
最佳答案
那是因为还有许多其他分支还没有包含 Jenkins 文件。
可能是您第一次使用 Jenkins 时遇到的情况。因此 Jenkins 文件仅在您当前的开发分支中(例如:YOUR_BRANCH-79
)。
这里不要使用:origin/YOUR_BRANCH-.*
,可以使用:origin/YOUR_BRANCH-79
。
关于maven - 错误 :/var/jenkins_home/workspace/gara-bo@script/Jenkinsfile not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57227960/
看起来 Jenkins 将环境变量 $JENKINS_HOME 用于两个不同的目的,并且对于每个目的它将获得不同的值。 目的#1:首先,JENKINS_HOME 是本地文件系统上的一个目录,用于存储
我正在 Ubuntu 上的 docker 容器内运行 Jenkins。我尝试通过 docker -it exec CONTAINER_ID bash 和 cat/var/jenkins_home/se
我正在使用 jenkins.war 文件。我正在尝试测试一个 groovy 电子邮件模板。这给了我以下错误 Groovy Template file [groovy1-html.template] w
释放 C: 上的空间,我想从默认安装目录 \jobs 移动我的 Jenkins 数据文件(特别是 C:\Program Files (x86)\Jenkins 目录)至 F:\Jenkins\home
我正在转换我当前的 Jenkins 服务器以实现 Docker。按照github上的指南https://github.com/jenkinsci/docker ,我能够使用以下命令成功启动 jenki
我是 apache tomcat 和 Jenkins 的新手。我已经安装了 Tomcat Apache 服务器并在上面上传了 Jenkins。 因此,现在 Jenkins 位于以下目录中: C:\Pr
我在 tomcat 服务器上运行了一个 jenkins 安装,我保留了默认设置,所以我的 jenkins 主目录位于 C:\Windows\system32\config\systemprofile.
当我将默认的 JENKINS_HOME 更改为我在 ubuntu 中的位置时,我的 jenkins 出现错误。 Unable to create the home directory ‘/media/
我正在使用需要知道 $JENKINS_HOME 值的 Jenkins API 自动化一个 Jenkins 工具。该工具在 Jenkins 之外运行。 我正在使用 http:///systemInfo
我使用这个过程来安装 Jenkins: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distrib
我刚刚开始在 Mac 中使用 Docker。 我已经安装了第一个名为 Jenkins 的 docker 容器。 Jenkins 默认主目录是: /var/jenkins_home 如何从我的 Mac
我通过 Homebrew 安装了 Jenkins,但不小心将自己锁在外面(即在创建管理员级别用户之前设置安全性)。 Instructions在 Jenkins wiki 上指示我从位于路径 JENKI
我正在按照此 official guide 通过 docker 安装 Jenkins . 运行命令后: docker run \ -u root \ --rm \ -d \ -p 80
我最近将我的 Jenkins 安装从独立配置移动到 Tomcat 中,并且在尝试运行管道构建时,它在初始 Git Checkout 阶段失败(如下面的 shell 输出中所示)它尝试从主页初始化我的
我用 Tomcat 部署了我的 Jenkins,它运行完美。现在我注意到 Jenkins 当前安装在 root 用户 (/root/.jenkins),但是我需要将它安装在不同的位置,而不是根。我读到
我想了解 CI 和 Jenkins,所以我在我的机器上学习并安装了 Jenkins(Windows 10、64x)。我继续将 Jenkins 配置为 Windows 服务。 我遵循了本教程: http
我正在运行一个带有 100GB 附加 EBS 的 EC2 实例,专门用于 Jenkins 工作区(即 Jenkins_Home) 我将 EBS 安装在/mnt/jenkins 并在通过 apt-get
Jenkins 在 RedHat Linux 机器(AWS 上干净的 EC2 机器)上运行良好,直到我决定更改 JENKINS_HOME。我只是将 Jenkins 目录从 /var/lib/jenki
我有一个 Maven 多模块项目。我创建了一个管道来清理和部署我的项目。当我运行管道时,我得到以下输出: ``Started by user XXXXX Checking out git http:/
这是我的 Jenkins 配置: 错误信息: /var/jenkins_home/.ssh/known_hosts [SSH] No Known Hosts file was found at /va
我是一名优秀的程序员,十分优秀!