Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the case of the supplied MettleCI Upgrade Pipeline certain Pipeline operations need to happen in specific Agents - i.e. some operations must execute on your environment’s legacy Agent, whilst others need to be assigned to a target Agent. To achieve this the MettleCI Sample Jenkins Pipeline assumes the availability of two Agent labels which you should have created and assigned:

Status
colourBlue
titlemettleci:
Status
titledatastage11.5.1
- A Jenkins Agent hosting a MettleCI Command Line on a DataStage v11.5 Client Tier

Status
colourBlue
titlemettlecI
Status
colourPurple
titlemettleci:datastage11.7.1
- A Jenkins Agent hosting a MettleCI Command Line on a DataStage v11.7.1 Client Tier

...

Code Block
stages {
    stage("Some Pipeline Stage") {
        agent {
            label 'mettleci datastage11.5.1'
        }
        environment {
            ENVID = "ci"
            DATASTAGE_PROJECT = "${env.IIS_BASE_PROJECT_NAME}_${env.ENVID}"
        }
        steps { ... }           

...