Question: I have some flow like below in a pipeline.

```
    stage('Build') {
                    build job: 'Build'
    }

    stage('Run') {
                  build job: 'Run', parameters: [string(name: 'build_version', value: <to get from Build job>)]
    }

```

I am running a python script inside Build job as execute batch script.

```
```python build.py```

```

"build.py" will have a variable "build\_version". I want to pass it to jenkins Job "Build" and inturn to the pipeline and pass the same to "Run" job from pipeline.

How can I do that ?

Answer: 
`:onchange` is not the correct syntax to listen for a change event in vue, you also don't need to pass this.selectedValue into the method as it will be available in your data (you don't have access to `this` in a template).

Try the following:

Change `:onchange` to be:

```
@change="getStudents"

```

Update your `getStudents` method to:

```
getStudents() {
    const postTutorClassData = new FormData();

    postTutorClassData.append('docent', this.teachername);
    postTutorClassData.append('apikey', this.apikey);
    postTutorClassData.append('tutorgroep', this.selectedValue) // remove event and use selected value

    axios.post(this.URL_TUTORKLAS, postTutorClassData).then(response => {
        this.docenten = response.data.docent;
        this.leerlingen = response.data.leerlingen;

        // this.selectedValue = 'null';
        // Changing this to be null will re-trigger the change event, causing your infinite loop
    }).catch(function (error) {
        console.log(error);
    });
},

```
use @change instead of :onchange