Is it possible to make a mix job with Freestyle and Pipeline ?

264 views
Skip to first unread message

Eldad Cohen

unread,
Aug 5, 2017, 2:59:44 AM8/5/17
to Jenkins Users
Hi,

This requirement have raised since there is no support for TFS plugin with pipeline. My project is using TFSVS code.

Thanks

Victor Martinez

unread,
Aug 5, 2017, 6:31:45 AM8/5/17
to Jenkins Users
You can use pipeline and orchestrate Freestyle jobs:

For instance, see the below declarative pipeline snippet:


pipeline
{
    agent any
    stages {
        stage('Build TFSVS') {
            steps {
             build job: 'YourFreeStyleJob'
            }
       
}
    }
}


You can see further examples in the below url:

Probably you can combine JobDSL and Pipeline to code your Jenkins Jobs/Pipelines 

I hope it helps.

Cheers

Eldad Cohen

unread,
Aug 5, 2017, 9:11:45 AM8/5/17
to Jenkins Users
Thanks on the detailed answer.
Is it a good practice ?

Eldad Cohen

unread,
Aug 6, 2017, 8:54:40 AM8/6/17
to Jenkins Users
Hi,

What is the best practice to work on the freestyle workspace , since the freestyle job is doing a checkout of the code via TFSVS.
Do I need to use   a Custom workspace or to copy all workspace ?

Thanks
Reply all
Reply to author
Forward
0 new messages