IBM Support

PI12999: Build Forge 8.0 adaptor dot command does not resolve variable as argument

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When attempting to run an adaptor dot command (.source, .pack,
    .test, .defect) using an environment variable, the variable is
    not resolved.
    
    ie: .source ${ADAPTOR_NAME}
    
    This causes the build step to fail and the adaptor to never run.
    
    Steps to reproduce:
    
    - Generate a simple adaptor that performs a echo of 'Testing',
    called TestAdaptor.
    
    ??xml version='1.0'??
    ?!-- (c) Copyright by IBM Corp. and other(s) [2003], 2007 All
    Rights Reserved. --?
    ?!DOCTYPE PROJECT_INTERFACE SYSTEM 'interface.dtd'?
    ?PROJECT_INTERFACE IFTYPE='Source' INSTANCE='7.021'?
    ?interface?
     ?run command='echo' params='' server='$BF_SERVER' dir='/'
    timeout='360'/?
    
     ?onstep result='fail'?
     ?/onstep?
    
     ?onstep result='pass'?
     ?/onstep?
    
     ?onproject result='pass'?
     ?/onproject?
    ?/interface?
    
    ?command name='echo'?
     ?execute?
      echo 'Testing'
     ?/execute?
    ?/command?
    
    ?/PROJECT_INTERFACE?
    
    - Create an environment group (TestEnv1) with a variable
    ADAPTOR_NAME with the value 'TestAdaptor'.
    
    - Create a project, setting TestEnv1 as the environment, with a
    single step running the .source command with the variable.
    
    .source ${ADAPTOR_NAME}
    
    Expected result:
    
    The variable is resolved to the proper value, which is used by
    the .source command to run the correct adaptor.
    
    Actual result:
    
    The build step fails indicating the variable was used as a
    literal argument for the .source command.
    
    82 2/20/14 10:38 AM  STEP CRRBF9999I: .source '${ADAPTOR_NAME}'.
    83 2/20/14 10:38 AM  ERROR CRRBF9999I: Usage: .source
    ?adaptor_name? [entry_name]
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the step command is like this .source ${var1} . The
    step will parse the var1 by its environment variables
    

Problem conclusion

  • the variable replace operation will do firstly
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI12999

  • Reported component name

    RATIONAL BUILDF

  • Reported component ID

    5724S2700

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-03-04

  • Closed date

    2014-06-20

  • Last modified date

    2014-06-20

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATIONAL BUILDF

  • Fixed component ID

    5724S2700

Applicable component levels

  • R800 PSN

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSB2MV","label":"Rational Build Forge"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
03 May 2022