Page History
...
Code Snippet | Description | |||||
---|---|---|---|---|---|---|
agent { node { label 'Windows' customWorkspace "workspace/test-xUML-project" } } | Section agent defines
| |||||
options { buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '1')) disableConcurrentBuilds() } | Section options defines
| |||||
parameters { choice(name: 'E2EC', choices: 'D:/jenkins/userContent/e2ec/e2ec-7.0.0-beta1.jar', description: 'Location of the E2E Compiler') choice(name: 'REGTEST', choices: 'D:/jenkins/userContent/RegTestRunner/RegTestRunner-nightly.jar', description: 'Location of the E2E Regression Test Runner') } | Section parameters defines parameters to use further below in the script. If you provide multiple choices, Jenkins will generate a dropdown list do to select from. The first list item serves as the default value. This default will be selected, if the script is triggered automatically.
| |||||
stages { stage('Build') { [...] } } | In section stages, you can define named build stages. If the processing of one stage fails, the subsequent stages will not be processed. | |||||
steps { dir('Advanced Modeling/E2ELibrary') { bat """ java -jar ${E2EC} -uml uml/librarySQLQuery.xml copy repository\\librarySQLQuery\\librarySQLQuery.lrep libs\\ java -jar ${E2EC} -uml uml/useLibrarySQLQuery.xml """ archiveArtifacts artifacts: 'repository/useLibrarySQLQuery/UseE2ELibraryExample.rep' } | In section steps, you can define the tasks to process in this stage, e.g.
| |||||
java -jar ${E2EC} -uml uml/librarySQLQuery.xml | Call the E2E Command Line Compiler. The location of the compiler is specified via a Jenkins parameter (see above). | |||||
copy repository\\librarySQLQuery\\librarySQLQuery.lrep libs\\ | Copy the compiled library repository to the libs folder of the project, so it will be used when compiling the usage model. For more details, see Compiling Libraries and Library Usage Models. | |||||
e2ebridge deploy E2ELibrary/repository/useLibrarySQLQuery/UseE2ELibraryExample.rep -h <Bridge host> -u <user> -P <password> -o overwrite | Call the E2E Bridge CLI to deploy the compiled service to an E2E Bridge. | |||||
dir('Advanced Modeling') { bat """ java -jar ${REGTEST} -project PState -suite "QA Tests/Tests" -logfile result.xml -host <Bridge host> -port <port> -username <user> -password <password> """ } | Call the E2E RegTestRunner to perform regression tests on the newly deployed service. The location of the RegTestRunner is specified via a Jenkins parameter (see above). |
...
Overview
Content Tools