Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,340
Community Members
 
Community Events
165
Community Groups

Jenkins UserContent does not execute JS and form HTML

Edited

On my project, I need to have an HTML file on jenkins in the directory "userContent" to run a form and send some data to another server :

 

<form id="recievefile" action="http://127.0.0.1:8844/process" method="post" enctype="multipart/form-data">
    <h3>Worker</h3>
    <p>
        <select name="workerName">
            <option value="Worker1" selected="selected">Worker1</option>
        </select>
    </p>
    <h3>Input</h3>
    <p>
        File: <input id="fileInput" type="file" name="filerecievefile" />
    </p>
    <h3>Options</h3>
    <details>
        <summary>Process type</summary>
        <p>
            <select name="processType">
                <option value="signDocument" selected="selected">Sign document</option>
            </select>
        </p>
    </details>
    <input type="text" name="callback" value="?"/>
    <h3>Submit</h3>
    <input id="submitButton" type="submit" name="buttonrecievefile" value="Submit" class="buttonFeatured" />
</form>

This form is well executed locally, but when I put it in the userContent directory, the form is not executed. Do you know why ?

Is there any security I can disable to allow form and JavaScript execution on this directory ?

Thx.

Sorry if it's not the right section !

1 answer

What do you mean "run a form" ? Form is rendered by a browser (be it headless or not). 
How did you define "running the form" in your pipeline configuration?

You can also try asking on some Jenkins specific forums.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Off-topic

Don't F&*% the planet.

Over the weekend, Atlassian ran a New York Times ad calling on business leaders to join us in committing to a net zero future through the Science-Based Targets Initiative. As part of our gl...

1,183 views 6 39
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you