Class: GitMaintain::AzureCI

Inherits:
CI
  • Object
show all
Defined in:
lib/azure.rb

Constant Summary collapse

AZURE_URL =
'https://dev.azure.com/'

Instance Method Summary collapse

Methods inherited from CI

#emptyCache, load

Constructor Details

#initialize(repo, stable = '', valid = '') ⇒ AzureCI

Returns a new instance of AzureCI.



5
6
7
8
9
10
# File 'lib/azure.rb', line 5

def initialize(repo, stable='', valid='')
    super(repo)
    @url = AZURE_URL
    @stable_org=stable
    @valid_org=valid
end

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