MC
Size: a a a
MC
VD
vars/A.groovyВ A.groovy есть функция A1
vars/B.groovy
VL
vars/A.groovyВ A.groovy есть функция A1
vars/B.groovy
KK
vars/A.groovyВ A.groovy есть функция A1
vars/B.groovy
VD
hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: properties.call() is applicable for argument types:
VL
VD
VL
E
VD
VL
hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: properties.call() is applicable for argument types:
VD
hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: properties.call() is applicable for argument types: (java.util.ArrayList) values: [[@buildDiscarder(<anonymous>=@logRotator(artifactDaysToKeepStr=,artifactNumToKeepStr=50,daysToKeepStr=15,numToKeepStr=50))]]
VL
VL
hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: properties.call() is applicable for argument types: (java.util.ArrayList) values: [[@buildDiscarder(<anonymous>=@logRotator(artifactDaysToKeepStr=,artifactNumToKeepStr=50,daysToKeepStr=15,numToKeepStr=50))]]
VD
import groovy.transform.FieldЯ дергаю из B.groovy вот так:
@Field def rulesForProtectedBranch = [
'master':['qa_approval', 'regular'],
'maintenance/4.1':['qa_approval', 'regular', 'regression'],
'maintenance/3.1':['qa_approval', 'regular', 'regression'],
'maintenance/2.6':['qa_approval', 'regular', 'regression']
]
def getProtectedBranchesMap() {
return rulesForProtectedBranch
}
def callAPISetStatus(projectID, context, state, scmVars) {
def rules = properties.getProtectedBranchesMap()
}
и
не работает :(VL
void call() {}
void sayHello(String name)
{
println "sayHello $
{name
}"
}
VL
class helloWorldTest extends BasePipelineTest {
def helloWorld
@Before
void setUp() {
super.setUp()
helloWorld = loadScript("vars/helloWorld.groovy")
}
@Test
void "Say hello'"() {
helloWorld.sayHello("Preved")
}
}
VL
VD
VD