SHARE
TWEET

Untitled

a guest Jun 20th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pattern1.xml
  2.  
  3. <note>
  4. <pattern>"(V14R01M7.)(\d+)[^\s][^\d+.\d+]"</pattern>
  5. <releasetrack>1.7.1</releasetrack>
  6. </note>
  7.  
  8. pattern2.xml
  9.  
  10. <note>
  11. <pattern>"(V14R01M7.29.)\d+"</pattern>
  12. <releasetrack>1.7</releasetrack>
  13. </note>
  14.  
  15.  
  16. powershell-code
  17. foreach (patternfile in collectionOfPatternfiles)
  18. {
  19.     regexpatterenFromFile = patternfile.note.pattern
  20.     releaseversion = regex.match(subjectOfEmail, regexpatterenFromFile)
  21.     if (regex.match == true)
  22.     {
  23.         UpdateReleasetrackInOctopus -NewReleaseVersion releaseversion -Releasetrack patternfile.note.releasetrack
  24.     }
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top