草庐IT

Jenkins-Build

全部标签

git - 带有 https 的 Jenkins Git 插件

我正在尝试使用Git插件在Jenkins中配置一个Git项目。在项目配置页面中,我在Git配置中输入存储库URL,这是一个httpsURL(https://git.mycompany.com/git/MyProject.git)。但是,当我构建项目时出现以下错误:StartedbyuserHudsonAdministrator[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/hudson/.hudson/jobs/MyProject/workspaceCheckout:workspace//home

git - 如何将 git short hash 获取到运行在 Windows 2008 上的 Jenkins 中的变量中

我正在尝试获取变量中的git短散列。我试图将GIT_COMMIT_SHORT变量设置为运行“gitrev-parse--shortHEAD”,但它没有用。我需要将此变量传递给ant构建脚本,以便包名称包含此短散列。我在Windows2008服务器上运行Jenkins。谢谢 最佳答案 可能获得所需结果的最简单方法是使用GIT_REVISIONtoken宏,如下所示:${GIT_REVISION,length=6}看看https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plug

git - 如何将 git short hash 获取到运行在 Windows 2008 上的 Jenkins 中的变量中

我正在尝试获取变量中的git短散列。我试图将GIT_COMMIT_SHORT变量设置为运行“gitrev-parse--shortHEAD”,但它没有用。我需要将此变量传递给ant构建脚本,以便包名称包含此短散列。我在Windows2008服务器上运行Jenkins。谢谢 最佳答案 可能获得所需结果的最简单方法是使用GIT_REVISIONtoken宏,如下所示:${GIT_REVISION,length=6}看看https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plug

Gitlab webhook 不会触发在 jenkins 上的构建

我有一组使用以下groovy脚本生成的多分支管道作业:['repo1','repo2',].each{service->multibranchPipelineJob(service){displayName(service)branchSources{git{remote("git@gitlab.com:whatever/${service}.git")credentialsId('gitlab-ssh-key')}}orphanedItemStrategy{discardOldItems{daysToKeep(0)numToKeep(30)}}triggers{periodic(5)

Gitlab webhook 不会触发在 jenkins 上的构建

我有一组使用以下groovy脚本生成的多分支管道作业:['repo1','repo2',].each{service->multibranchPipelineJob(service){displayName(service)branchSources{git{remote("git@gitlab.com:whatever/${service}.git")credentialsId('gitlab-ssh-key')}}orphanedItemStrategy{discardOldItems{daysToKeep(0)numToKeep(30)}}triggers{periodic(5)

git - 使用来自 Git 的代码运行 Jenkins 流水线

我想在jenkins中使用来自git的以下管道脚本#!groovypipeline{agentanystages{stage('Build'){steps{echo'Building..'}}stage('Test'){steps{echo'Testing..'}}stage('Deploy'){steps{echo'Deploying....'}}}}我正确设置了存储库URL,在“其他行为”下添加了“checkout到子目录”并将我的子目录写在那里。在“脚本路径”我写了:mysubdirectory/Jenkinsfile当我尝试运行它时出现以下错误:java.io.FileNotF

git - 使用来自 Git 的代码运行 Jenkins 流水线

我想在jenkins中使用来自git的以下管道脚本#!groovypipeline{agentanystages{stage('Build'){steps{echo'Building..'}}stage('Test'){steps{echo'Testing..'}}stage('Deploy'){steps{echo'Deploying....'}}}}我正确设置了存储库URL,在“其他行为”下添加了“checkout到子目录”并将我的子目录写在那里。在“脚本路径”我写了:mysubdirectory/Jenkinsfile当我尝试运行它时出现以下错误:java.io.FileNotF

git - Jenkins 使用 Publish over SSH 插件传输 0 个文件

我想将文件从我的后期构建Jenkins工作区传输到远程服务器上的某个位置。作业中所有步骤的构建都顺利进行,但始终传输0个文件。这是控制台输出:StartedbyuserPatrickBuildinginworkspace/var/lib/jenkins/jobs/20eyesBuild/workspaceFetchingchangesfromtheremoteGitrepositoryFetchingupstreamchangesfromhttps://github.com/project/project.gitusing.gitcredentialstosetcredentialsC

git - Jenkins 使用 Publish over SSH 插件传输 0 个文件

我想将文件从我的后期构建Jenkins工作区传输到远程服务器上的某个位置。作业中所有步骤的构建都顺利进行,但始终传输0个文件。这是控制台输出:StartedbyuserPatrickBuildinginworkspace/var/lib/jenkins/jobs/20eyesBuild/workspaceFetchingchangesfromtheremoteGitrepositoryFetchingupstreamchangesfromhttps://github.com/project/project.gitusing.gitcredentialstosetcredentialsC

windows - Jenkins 无法在 Windows 上通过 Git/SSH 克隆 Git 存储库

我已经在Windows200832位上通过Git/SSH成功克隆了Jenkins中的Git存储库。当我尝试在Windows200864位上执行相同操作时,控制台输出页面卡在此处:Démarréparl'utilisateuranonymousCheckout:book/C:\Jenkins\workspace\book-hudson.remoting.LocalChannel@1da691aUsingstrategy:DefaultLastBuiltRevision:Revision5d7ce4ae23c91fb201ee005e6db17bcd795ca965(origin/HEAD