role jenkinsRole {
    label "Jenkins";
    brief "Jenkins is an automation engine with an unparalleled plugin ecosystem to support all of your favorite tools in your delivery pipelines, whether your goal is continuous integration, automated testing, or continuous delivery.";
}

tool doxygen {
    label "Doxygen";
}

activity continiousIntegration {
    label "continious integration";
    responsible jenkinsRole;
    specialize 
        spice_SWE4, 
        spice_SWE5;
    subactivities
        docu_run,
        link_run;
}

namespace docu {
    
    include resources/processes/simpleSPICE/jenkinsJob.txt(
        "project documentation",
        projectPlan,
        "project documentation view",
        doxygen,
        pp_baseline
    );
    
}

activity createSystemRequirementsView {
    label "create system requirements view";
    transform link_resultArtefact;
    create systemRequirementsView;
}

extend activity docu_run {
    subactivities createSystemRequirementsView;
}

namespace link {
    
    include resources/processes/simpleSPICE/jenkinsJob.txt(
        "Link Requierements",
        stakeholderRequirements,
        "Linked Requirements",
        linkTool,
        sr_baseline
    );
    
}

extend activity link_run {
    transform
        systemRequirements;
    specialize 
        spice_SYS2BP6; 
}

extend artefact link_resultArtefact {
    text
        md/simpleSPICE/markdown.md;
}