Class: GitMaintain::AzureCI
Constant Summary collapse
- AZURE_URL =
'https://dev.azure.com/'
Instance Method Summary collapse
- #checkStableState(br, sha1) ⇒ Object
- #checkValidState(br, sha1) ⇒ Object
- #getStableLog(br, sha1) ⇒ Object
- #getStableState(br, sha1) ⇒ Object
- #getStableTS(br, sha1) ⇒ Object
- #getValidLog(br, sha1) ⇒ Object
- #getValidState(br, sha1) ⇒ Object
- #getValidTS(br, sha1) ⇒ Object
-
#initialize(repo, stable = '', valid = '') ⇒ AzureCI
constructor
A new instance of AzureCI.
- #isErrored(br, status) ⇒ Object
Methods inherited from CI
Constructor Details
Instance Method Details
#checkStableState(br, sha1) ⇒ Object
83 84 85 |
# File 'lib/azure.rb', line 83 def checkStableState(br, sha1) return checkState(sha1, getBrStableJson()) end |
#checkValidState(br, sha1) ⇒ Object
70 71 72 |
# File 'lib/azure.rb', line 70 def checkValidState(br, sha1) return checkState(sha1, getBrValidJson()) end |
#getStableLog(br, sha1) ⇒ Object
86 87 88 |
# File 'lib/azure.rb', line 86 def getStableLog(br, sha1) return getLog(sha1, getBrStableJson()) end |
#getStableState(br, sha1) ⇒ Object
80 81 82 |
# File 'lib/azure.rb', line 80 def getStableState(br, sha1) return getState(sha1, getBrStableJson()) end |
#getStableTS(br, sha1) ⇒ Object
89 90 91 |
# File 'lib/azure.rb', line 89 def getStableTS(br, sha1) return getTS(sha1, getBrStableJson()) end |
#getValidLog(br, sha1) ⇒ Object
73 74 75 |
# File 'lib/azure.rb', line 73 def getValidLog(br, sha1) return getLog(sha1, getBrValidJson()) end |
#getValidState(br, sha1) ⇒ Object
67 68 69 |
# File 'lib/azure.rb', line 67 def getValidState(br, sha1) return getState(sha1, getBrValidJson()) end |
#getValidTS(br, sha1) ⇒ Object
76 77 78 |
# File 'lib/azure.rb', line 76 def getValidTS(br, sha1) return getTS(sha1, getBrValidJson()) end |
#isErrored(br, status) ⇒ Object
92 93 94 95 96 |
# File 'lib/azure.rb', line 92 def isErrored(br, status) # https://docs.microsoft.com/en-us/rest/api/azure/devops/build/builds/list? # view=azure-devops-rest-5.1#buildresult return status == "failed" end |