-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpipeline.groovy
50 lines (40 loc) · 1.08 KB
/
pipeline.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import org.DevshGraphicsProgramming.Agent
import org.DevshGraphicsProgramming.BuilderInfo
import org.DevshGraphicsProgramming.IBuilder
class CArithemticUnitTestBuilder extends IBuilder
{
public CArithemticUnitTestBuilder(Agent _agent, _info)
{
super(_agent, _info)
}
@Override
public boolean prepare(Map axisMapping)
{
return true
}
@Override
public boolean build(Map axisMapping)
{
IBuilder.CONFIGURATION config = axisMapping.get("CONFIGURATION")
IBuilder.BUILD_TYPE buildType = axisMapping.get("BUILD_TYPE")
def nameOfBuildDirectory = getNameOfBuildDirectory(buildType)
def nameOfConfig = getNameOfConfig(config)
agent.execute("cmake --build ${info.rootProjectPath}/${nameOfBuildDirectory}/${info.targetProjectPathRelativeToRoot} --target ${info.targetBaseName} --config ${nameOfConfig} -j12 -v")
return true
}
@Override
public boolean test(Map axisMapping)
{
return true
}
@Override
public boolean install(Map axisMapping)
{
return true
}
}
def create(Agent _agent, _info)
{
return new CArithemticUnitTestBuilder(_agent, _info)
}
return this