CruiseControl.NET email publisher problem

后端 未结 3 575
天命终不由人
天命终不由人 2021-01-03 01:13

I want to set up ccnet to:

  1. Send mail to committers after each build (regardless of the status)
  2. Send mail to all other developers when the build break
3条回答
  •  旧时难觅i
    2021-01-03 01:42

    I believe that this does what you want (admittedly, a year after your question).

    NB: We use SVN, with a block. In CC.NET 1.4.xx, blocks support regular expressions to work out email addresses from SVN usernames. It should work with other source control blocks, but I haven't used anything but SVN.

    We have something like the following in our block (I've modified it to match your spec):

    
      
      
        
        
      
      
        
      
    
      
      
        
      
      
        always
      
    
    

    So, dev1@ourcompany.com and dev2@ourcompany.com will get an email whenever the build status changes, and [svnuser]@ourcompany.com will get an email when the build they've committed code for finishes building.

    NB: if the build fails, svn users who have committed code since it last succeeded will continue to get further emails each time a build finishes until the build is fixed.

提交回复
热议问题