Can we restrict some job config fields from update operations

5 views
Skip to first unread message

Samith Dassanayake

unread,
May 6, 2015, 10:57:16 AM5/6/15
to jenkins...@googlegroups.com
Hi all,
Once we create a job, can we restrict some particular fields, for update using "Fetch/Update config.xml" rest endpointI.
For example assume my job config is like below and I want to restrict changes to "description"  field using rest api

<project>
    <actions/>
    <description>deploys to cloud instance</description>
    <keepDependencies>false</keepDependencies>
    <properties/>
    <scm class="hudson.scm.NullSCM"/>
    <canRoam>true</canRoam>
    <disabled>false</disabled>
    <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
    <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
    <triggers class="vector"/>
    <concurrentBuild>false</concurrentBuild>
    <builders>
        <hudson.tasks.Shell>
            <command>echo "deploying to prod"</command>
        </hudson.tasks.Shell>
    </builders>
    <publishers/>
    <buildWrappers/>
</project>

Thanks,
Samith
Reply all
Reply to author
Forward
0 new messages