Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

🏸 Atlympic Event: Community!

Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! badges! fun!) please read...

213 views 8 18
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