mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-11-24 08:52:14 +02:00
Откат попытки
This commit is contained in:
parent
25941073dd
commit
6cf6991c66
@ -12,10 +12,6 @@ class EdtTransform implements Serializable {
|
||||
public static final String WORKSPACE = 'build/edt-workspace'
|
||||
public static final String WORKSPACE_ZIP = 'build/edt-workspace.zip'
|
||||
public static final String WORKSPACE_ZIP_STASH = 'edt-workspace-zip'
|
||||
public static final String WORKSPACECFG = 'build/cfg-workspace'
|
||||
public static final String WORKSPACE_ZIP_CFG = 'build/cfg-workspace.zip'
|
||||
public static final String WORKSPACE_ZIP_STASH_CFG = 'cfg-workspace-zip'
|
||||
|
||||
|
||||
private final JobConfiguration config;
|
||||
|
||||
@ -53,35 +49,4 @@ class EdtTransform implements Serializable {
|
||||
steps.stash(WORKSPACE_ZIP_STASH, WORKSPACE_ZIP)
|
||||
}
|
||||
|
||||
def run(boolean srcEDT) {
|
||||
IStepExecutor steps = ContextRegistry.getContext().getStepExecutor()
|
||||
|
||||
Logger.printLocation()
|
||||
|
||||
if (!config.stageFlags.srcEDT) {
|
||||
Logger.println("SRC is not EDT format.")
|
||||
return
|
||||
}
|
||||
|
||||
def env = steps.env();
|
||||
|
||||
|
||||
def workspaceDir = config.srcDir
|
||||
def configurationRoot = "$env.WORKSPACE/$WORKSPACECFG"
|
||||
def PROJECT_NAME = "pb17" // TODO взять из srcDIR
|
||||
|
||||
steps.createDir(workspaceDir)
|
||||
|
||||
Logger.println("Конвертация исходников из формата EDT в формат конфигуратора")
|
||||
|
||||
def ringCommand = "ring edt workspace import --configuration-files '$configurationRoot' --project-name $PROJECT_NAME --workspace-location '$workspaceDir'"
|
||||
|
||||
def ringOpts = ['RING_OPTS=-Dfile.encoding=UTF-8 -Dosgi.nl=ru -Duser.language=ru']
|
||||
steps.withEnv(ringOpts) {
|
||||
steps.cmd(ringCommand)
|
||||
}
|
||||
|
||||
steps.zip(WORKSPACECFG, WORKSPACE_ZIP_CFG)
|
||||
steps.stash(WORKSPACE_ZIP_STASH_CFG, WORKSPACE_ZIP_CFG)
|
||||
}
|
||||
}
|
||||
|
@ -8,10 +8,3 @@ def call(JobConfiguration config) {
|
||||
def edtTransform = new EdtTransform(config)
|
||||
edtTransform.run()
|
||||
}
|
||||
|
||||
def call(JobConfiguration config, boolean srcEDT) {
|
||||
ContextRegistry.registerDefaultContext(this)
|
||||
|
||||
def edtTransform = new EdtTransform(config)
|
||||
edtTransform.run(true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user