Jenkins has the Gerrit Plugin in place so that when we do checkins to gerrit, Jenkins performs a build and if it succeeds, then the modification in gerrit is verified. If the build fails then it is not. My understanding is that this is accomplished through jobs set up in Jenkins. We have now created a new branch (git) and I guess I need to clone the existing jobs pointing to the other branch so that this same workflow occurs and builds are performed on every commit. Can somebody explain how I would clone these jobs. I don't seem to see a way to do it through the UI nor can I even see a way to list the jobs out through the UI.
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Jenkins - cmd is not recognized
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
相关文章
- dotnet restore还原nuget包时无法加载 https://api.nuget.org/
- 请教Git如何克隆本地库?
- jenkins在window集群环境中如何部署自动化发布?
- jenkins + Publish over FTP 自动部署前端React项目
- jenkins自定打包部署React前端项目遇到的问题。
- Best way to manage docker containers with supervis
- Access BitBucket payload data in Jenkins pipeline
- Build errors of missing packages in Visual Studio
Create a new Item and go to the last you'll find option to copy from existing, just write your current job name and you will have clone of that project to work with.
In my case, I had to copy over a job from one jenkins instance to another.
So first I looked under the directory structure of the old Jenkins (the job/directory name; also noted the config.xml) and then under the directory structure of the new jenkins where I then created a directory with same name/job and copied over the config.xml under this newly created dir.
Then under, "Manage Jenkins", I hit "Reload Configuration from Disk". Thats it.
To copy an existing job, go to
http://your-jenkins/newJob
and use the "Copy existing job" option. Enter the name of the existing job - Jenkins will verify whether it exists.The default tab on the front page of Jenkins should list all existing jobs, but maybe your predecessor deleted the tab. You can create a new tab listing all jobs from
http://your-jenkins/newView.
You could use Jobcopy Builder plugin
You can also use the Copy project link plugin.
This will add a link on the left side panel of your project:
Following screen will ask for the new Job name:
You can clone a job:
Finally, you have your new job, which reflects all features of your cloned one.