Publishing MSTests in pipeline

7 views
Skip to first unread message

Thiago Carvalho Davila

unread,
May 15, 2017, 11:02:40 AM5/15/17
to jenkins...@googlegroups.com
Hi,

I'm having problems to transpose the use of MSTest Plugin to pipeline as code. I don't know the correct syntax, but I think is something like:

        stage('Unit Tests'){
            steps {
                echo "\"${tool 'vstest.console_v14'}\" ${VSTest_TestFiles} ${VSTest_Args}"
                bat "\"${tool 'vstest.console_v14'}\" ${VSTest_TestFiles} ${VSTest_Args}"
            }
            post {
                always {
                    msTest {
                        pattern('**/*.trx')
                    }
                }
            }
        }

Thanks!

Best regards,

Thiago
-


"Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), empresa pública federal regida pelo disposto na Lei Federal nº 5.615, é enviada exclusivamente a seu destinatário e pode conter informações confidenciais, protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente, esclarecendo o equívoco."

"This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a government company established under Brazilian law (5.615/70) -- is directed exclusively to its addressee and may contain confidential data, protected under professional secrecy rules. Its unauthorized use is illegal and may subject the transgressor to the law's penalties. If you're not the addressee, please send it back, elucidating the failure."
Reply all
Reply to author
Forward
0 new messages