forked from firstBitMarksistskaya/jenkins-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ivanovEV
committed
Jan 17, 2024
1 parent
8aac6e0
commit 624a3ba
Showing
7 changed files
with
134 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package ru.pulsar.jenkins.library.steps | ||
|
||
import org.jenkinsci.plugins.pipeline.utility.steps.fs.FileWrapper | ||
import ru.pulsar.jenkins.library.IStepExecutor | ||
import ru.pulsar.jenkins.library.configuration.JobConfiguration | ||
import ru.pulsar.jenkins.library.ioc.ContextRegistry | ||
import ru.pulsar.jenkins.library.utils.Logger | ||
import ru.pulsar.jenkins.library.utils.VRunner | ||
|
||
class loadExtintions implements Serializable { | ||
|
||
private final JobConfiguration config; | ||
|
||
loadExtintions(JobConfiguration config) { | ||
this.config = config | ||
} | ||
|
||
def run() { | ||
IStepExecutor steps = ContextRegistry.getContext().getStepExecutor() | ||
|
||
Logger.printLocation() | ||
|
||
List<String> logosConfig = ["LOGOS_CONFIG=$config.logosConfig"] | ||
steps.withEnv(logosConfig) { | ||
|
||
String vrunnerPath = VRunner.getVRunnerPath(); | ||
|
||
steps.catchError { | ||
|
||
config.initInfoBaseOptions.extintions.each { | ||
Logger.println("Установим расширение ${it.name}") | ||
|
||
// if (config.sourceFormat == SourceFormat.EDT) { | ||
// def env = steps.env(); | ||
// srcDir = "$env.WORKSPACE/$EdtToDesignerFormatTransformation.CONFIGURATION_DIR" | ||
|
||
// steps.unstash(EdtToDesignerFormatTransformation.CONFIGURATION_ZIP_STASH) | ||
// steps.unzip(srcDir, EdtToDesignerFormatTransformation.CONFIGURATION_ZIP) | ||
// } else { | ||
// srcDir = config.srcDir; | ||
// } | ||
|
||
// VRunner.exec("$vrunnerPath ${it} --ibconnection \"/F./build/ib\"") | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import ru.pulsar.jenkins.library.configuration.JobConfiguration | ||
import ru.pulsar.jenkins.library.ioc.ContextRegistry | ||
import ru.pulsar.jenkins.library.steps.loadExtintions | ||
|
||
def call(JobConfiguration config) { | ||
ContextRegistry.registerDefaultContext(this) | ||
|
||
def loadExtintions = new loadExtintions(config) | ||
loadExtintions.run() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters