Hello,
Im new to jenkins, Anybody please help me on an "How to" question?
Suppose I have one master node and one slave node, I have a maven project
in the slave node. Now I want to trigger the build of the project from the
master node pipeline. Is that a meaningful idea?
I tried to run the master project in the slave instance, it's working fine.
Code I used to run master-project in slave node:
pipeline {
agent {label 'junit_jenkins'}
stages {
stage('Build') {
steps {
build job: 'test-jenkins', parameters: [string(name: 'PACKAGE',
value: 'test-jenkins'), [$class: 'LabelParameterValue', name:
'junit_jenkins', label: 'junit_jenkins']]
}
}
}
}
Any help will be appreciated
Thanks,
Rubel
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/99d82763-6010-452b-9970-ce9672992d70o%40googlegroups.com.