jenkins - Delegate specific part of build to slave -


i have project part of build process create native library on remote machine. manual process outside of ci builds made jenkins.

the setup in question jenkins master server build git based maven project, has dependency native library can built on specific machine. jenkins can't compile module, , because of this, manual process.

i install jenkins slave on machine creates native library, , returns compiled files jenkins master, without handling other parts of build.

i having trouble figuring out if possible. number of articles have found on subject discusses jenkins slaves means of distributing build, want slave take responsibility small part of build process, , nothing else. jenkins master should send build request slave , wait result, instead of trying compile code itself.

i same. setup, similar mark o'connor , gaige advising, , using copy artifact plugin.

  • job a: produces zip file on mac

  • job b, runs on slave b - windows machine, takes zip input , produces msi

here's important part in config of job b:

  1. restrict job b on proper slave using labels

    restrict job b on proper slave using labels

  2. make sure job b happens after job a

    make sure job b happens after job a

  3. make sure artifacts job sent job b before build

    make sure artifacts job sent job b

  4. build stuff

  5. archive artifacts produced job b

    archive artifacts produced job b


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -