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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

yop I'm New Here Sep 25, 2020

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

Importance of Self Realization

Knowing who you are is very important. Life depends on how you define yourself. Be yourself; everyone else is already taken. — Oscar Wilde You might have seen come across quotes like: I am here fo...

308 views 2 6
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