Я пытаюсь запустить свою работу в Jenkins на 2 подчиненных агентах Personal_Pc
и ELO_1
, каждый из которых имеет другое имя группы. Но задание выполняется только на Personal_Pc
, а не на ELO_1
.
pipeline
{
agent {label "Personal_Pc" && "ELO_1"}
stages
{
stage('Build')
{
steps
{
archiveArtifacts artifacts: 'autoload.php,php_couchbase.dll,libcouchbase.dll,php.ini,application/**,src/**,system/**,uploads/**,vendor/**,.htaccess,index.php,spinner.svg,waiting_config.png', caseSensitive: false, defaultExcludes: false, onlyIfSuccessful: true
}
}
stage('Copying POS files')
{
steps
{
copyArtifacts filter: 'autoload.php,application/**,src/**,system/**,uploads/**,vendor/**,.htaccess,index.php,spinner.svg,waiting_config.png', fingerprintArtifacts: true, projectName: 'Setup_Pipeline', selector: lastWithArtifacts(), target: 'C:\\server\\htdocs\\pos'
}
}
stage('Copying LIB FILE DLL')
{
steps
{
copyArtifacts filter: 'libcouchbase.dll', fingerprintArtifacts: true, projectName: 'Setup_Pipeline', selector: lastWithArtifacts(), target: 'C:\\server\\apache\\bin'
}
}
stage('Copying INI FILE')
{
steps
{
copyArtifacts filter: 'php.ini', fingerprintArtifacts: true, projectName: 'Setup_Pipeline', selector: lastWithArtifacts(), target: 'C:\\server\\php'
}
}
stage('Copying PHP EXT FILE DLL')
{
steps
{
copyArtifacts filter: 'php_couchbase.dll', fingerprintArtifacts: true, projectName: 'Setup_Pipeline', selector: lastWithArtifacts(), target: 'C:\\server\\php\\ext'
}
}
}
}