Parser_module_API >> function_assert_define >> function_test_processing 

Fuego 1.0 wiki

Login

function concurrent check in split format

NAME [edit section]

= NAME =concurrent_check

SYNOPSIS [edit section]

= SYNOPSIS =concurrent_check

DESCRIPTION [edit section]

pre_build function.
= DESCRIPTION =This function is used to prevent multiple tests from using the build areafor a test concurrently. It is called by the [[function_pre_build|pre_build]] function.
concurrent_check uses a local file as a build lock. The lock file (while it exists during the execution of the test) hold the value of BUILD_URL.If the lock file is present when function is entered, concurrent_check willenter a while loop querying the jenkins server about the status of the job.concurrent_check will wait in this loop until Jenkins reports that the jobhas finished.
concurrent_check uses a local file as a build lock.  The lock file (while it exists during the execution of the test) hold the value of BUILD_URL.If the lock file is present when function is entered, concurrent_check willenter a while loop querying the jenkins server about the status of the job.concurrent_check will wait in this loop until Jenkins reports that the jobhas finished.
When concurrent_check exits, the lock file will be created, with the valueof build_url. This lockfile is removed after the software from the buildarea has been deployed to the target, by the [[function_post_deploy|post_deploy] function.
When concurrent_check exits, the lock file will be created, with the valueof build_url.  This lockfile is removed after the software from the buildarea has been deployed to the target, by the [[function_post_deploy|post_deploy] function.

EXAMPLES [edit section]

= EXAMPLES =Here are some sample invocations:{{{#!YellowBoxconcurrent_check}}}

ENVIRONMENT and ARGUMENTS [edit section]

= ENVIRONMENT and ARGUMENTS =The following environment variables are used by this function: * TRIPLET - defined in common.sh as ${JOB_NAME}-$PLATFORM * WORKSPACE * BUILD_URL
This function takes no positional arguments.
This function takes no positional arguments.

RETURN [edit section]

= RETURN =Returns non-zero on error.  

SOURCE [edit section]

= SOURCE =Located in ''scripts/functions.sh''

SEE ALSO [edit section]

post_deploy
= SEE ALSO = * [[function_post_deploy|post_deploy]]
TBWiki engine 1.9.3 by Tim Bird