Raghu Posted September 27, 2017 Report Share Posted September 27, 2017 Hello, I am new to Plastic and trying to understand it's architecture and integration functionalities with Jenkins CI. I would like to know if there is any option in Plastic SCM for Jenkins, something like web-hooks in GITHUB or GITLAB where it pushes the code to Jenkins and instructs it to start the job when ever a new merge happens to central repository, instead of Jenkins polling the repository in certain time interval for new changes in code. Link to comment Share on other sites More sharing options...
mig Posted September 27, 2017 Report Share Posted September 27, 2017 Hi Raghu, Unfortunately, that functionality is not available at the moment. You can request it at our uservoice website (https://plasticscm.uservoice.com/forums/15467-general) and we'll consider it into our development plans if it gets enough traction! Otherwise, please remember that the jenkins Plastic SCM plugin is open source, so you can extend it if you feel courageous enough! https://github.com/jenkinsci/plasticscm-plugin Regards, Miguel Link to comment Share on other sites More sharing options...
Raghu Posted September 27, 2017 Author Report Share Posted September 27, 2017 25 minutes ago, mig said: Hi Raghu, Unfortunately, that functionality is not available at the moment. You can request it at our uservoice website (https://plasticscm.uservoice.com/forums/15467-general) and we'll consider it into our development plans if it gets enough traction! Otherwise, please remember that the jenkins Plastic SCM plugin is open source, so you can extend it if you feel courageous enough! https://github.com/jenkinsci/plasticscm-plugin Regards, Miguel Thank you mig for the reply Link to comment Share on other sites More sharing options...
manu Posted September 27, 2017 Report Share Posted September 27, 2017 Hi @Raghu, not sure if it will fully fit but for "on premise" servers (not available for the Plastic cloud) you can use the Plastic SCM web triggers, it will allow you to make a web request that might start a new build in the Jenkins system. This is an example: cm maketrigger after-checkin "Notify team" "webtrigger https://www.mysite.com/api/team/checkin" You can get more details here: Triggers Guide Link to comment Share on other sites More sharing options...
Raghu Posted November 7, 2017 Author Report Share Posted November 7, 2017 Hi @manu, thank you for the details on this web triggers. I tried and it's working but the trigger is being applied to complete server. When ever some check-in happens in any repository of that server then this job is being executed. cm maketrigger after-checkin "Start-Build" "webtrigger http://<Jenkins-User>:<Jenkins-user-API-Token>@Jenkins-server:8080/job/<Jenkins-job>/build?token=<Jenkins-user-API-Token>" So, i have applied filter of my repository no the trigger is not being executed on Check-in. Below is the command used, can you help me fixing it. Am I missing something here? cm maketrigger after-checkin "Start-Build" "webtrigger http://<Jenkins-User>:<Jenkins-user-API-Token>@Jenkins-server:8080/job/<Jenkins-job>/build?token=<Jenkins-user-API-Token>" --filter="rep:<my-repo>" Link to comment Share on other sites More sharing options...
Raghu Posted November 9, 2017 Author Report Share Posted November 9, 2017 I got it resolved by adding "*" after repository name in filters. But I wanted to understand what does it mean any we need to provide it there. Link to comment Share on other sites More sharing options...
manu Posted November 9, 2017 Report Share Posted November 9, 2017 Hello @Raghu, you needed the * because you need to provide if you want it for all the checkins done at that repo or just if a few fileas are changed. For example: --filter=rep:default,*.cs Will only be triggered when cs files are involved at that checkin. I think it would be easier to "understand" that if there's no file filter assume a *... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.