2017-02-06 14 views
0

I持って 取得テスト結果

  • 実行別のパイプラインをこの

    • 実行事前に作成・テストのようなもの
    • ビルドプロジェクト
    • ランビルド後のテストを探しますジェンキンスパイプラインA B現在のビルドから抽出されたパラメータを持つB

    パイプラインBからテスト結果を取得する方法があるかどうか疑問に思っていましたパイプラインAのテスト結果を集計してください。 現在、コンソール出力を開き、外部ビルドにUrlを開く必要があります。

    上記が不可能な場合は、このURLをコンソール以外の場所(例:アーティファクト)として表示できますか?

  • +0

    ファイルに出力を書き込むことができます。そうしないと、結果が上書きされる可能性があります – utkusonmez

    答えて

    1

    私はあなたが探しているものが「隠れている」と信じています。以下はhttps://jenkins.io/doc/pipeline/examples/

    あらすじ から直接コピーされる。これは、あなたがディレクトリやファイルを上書きしないことを確認することができますように、ルートディレクトリとは異なるディレクトリにunstashする方法の簡単なデモなどがある

    // First we'll generate a text file in a subdirectory on one node and stash it. 
    stage "first step on first node" 
    
    // Run on a node with the "first-node" label. 
    node('first-node') { 
        // Make the output directory. 
        sh "mkdir -p output" 
    
        // Write a text file there. 
        writeFile file: "output/somefile", text: "Hey look, some text." 
    
        // Stash that directory and file. 
        // Note that the includes could be "output/", "output/*" as below, or even 
        // "output/**/*" - it all works out basically the same. 
        stash name: "first-stash", includes: "output/*" 
    } 
    
    // Next, we'll make a new directory on a second node, and unstash the original 
    // into that new directory, rather than into the root of the build. 
    stage "second step on second node" 
    
    // Run on a node with the "second-node" label. 
    node('second-node') { 
        // Run the unstash from within that directory! 
        dir("first-stash") { 
         unstash "first-stash" 
        } 
    
        // Look, no output directory under the root! 
        // pwd() outputs the current directory Pipeline is running in. 
        sh "ls -la ${pwd()}" 
    
        // And look, output directory is there under first-stash! 
        sh "ls -la ${pwd()}/first-stash" 
    } 
    

    基本的に、あなたの成果物をコピーすることができ、最初の仕事から副業を実行しているノードに、ユニットテストを実行しているから生じる.xmlファイルを言います。次に、1つ目のテストプロセッサと2つ目のジョブの結果の両方でユニットテストプロセッサを実行させます。

    関連する問題