With the Multiple SCMs Plugin:post
-
create a different repository entry for each repository you need to checkout (main project or dependancy project.ui
-
for each project, in the "advanced" menu (the second "advanced" menu, there are two buttons labeled "advanced" for each repository), find the "Local subdirectory for repo (optional)" textfield. You can specify there the subdirectory in the "workspace" directory where you want to copy the project to. You could map the filesystem of my development computer.spa
The "second advanced menu" doesn't exist anymore, instead what needs to be done is use the "Add" button (on the "Additional Behaviours" section), and choose "Check out to a sub-directory"插件
- if you are using ant, as now the build.xml file with the build targets in not in the root directory of the workspace but in a subdirectory, you have to reflect that in the "Invoke Ant" configuration. To do that, in "Invoke ant", press "Advanced" and fill the "Build file" input text, including the name of the subdirectory where the build.xml is located.
Hope that helps. 代理
3.Jenkins nuget restore website
https://stackoverflow.com/questions/29808177/nuget-automatic-restore-for-websitecode
I also have the same problem described in the above question. I was wondering if you figured out how to do a nuget restore on the website without the project file. I do have a package.config in the website.
I tried a bunch of different things and the following command got me closer to a resolution, but not quite.
nuget restore packages.config -PackagesDirectory ..\packages
The above command does restore the packages into the ..\packages folder as expected, but I cannot figure out how to get the correct assemblies into the website's bin folder.
须要restore两次,一次是restore Solution;另一次须要用上面的命令,显式处理website项目的packages.config
4.Jenkins中使用visual studio编译solution
https://juristr.com/blog/2014/03/Jenkins-Build-Setup-Project/
须要使用devenv.com
5.环境变量的配置以及使用
Manage Jenkins-->Configure System
在global properties中add一个新的
使用方法%devenv.com%,须要注意的时候,value若是有空格的话,须要在外面加上双引号
6.发送邮件给多个用户
https://stackoverflow.com/questions/24291167/jenkins-do-not-send-emails-to-multple-recipients
用逗号和空格来分隔邮箱,好比abc@**.com, bcd@**.com
7.NUnit
https://stackoverflow.com/questions/9121312/how-do-you-run-nunit-tests-from-jenkins
8.User
不能使用LocalSystem这个帐户进行nuget restore,由于代理的缘由。
D:\JENKINS_HOME\CodeCoverage>whoami nt authority\system 对应的是LocalSystem
D:\JENKINS_HOME\CodeCoverage>whoami asnet\sa-syg-guest 对应的是具体的帐户,有用户名和密码
能够经过给系统配置代理来解决问题
https://serverfault.com/questions/34940/how-do-i-configure-proxy-settings-for-local-system
Copy IE proxy settings to WinHttp:
- Run
cmd
as administrator:netsh
winhttp
show proxy
import proxy source=ie
show proxy