Add npm install fallback and remove unused variable

Added a fallback npm install command in the Jenkinsfile to handle legacy peer dependencies. Also removed an unused variable from genericForm.tsx to improve code clarity and performance.
This commit is contained in:
Teriuihi 2024-08-10 03:19:26 +02:00
parent 75559af7c8
commit 98b86363f5
2 changed files with 6 additions and 1 deletions

6
Jenkinsfile vendored
View File

@ -39,6 +39,12 @@ pipeline {
echo "Retry ${retryCount}/${MAX_RETRIES} failed"
}
}
try {
sh 'npm install --legacy-peer-deps --force'
success = true
} catch (Exception e4) {
echo "npm install --legacy-peer-deps --force failed"
}
}
if (!success) {

View File

@ -11,7 +11,6 @@ const GenericForm = (formData: FormData) => {
const backend: string = formData.backend;
const userInput: UserInput = formData.userInput;
const spec: Yup.Schema<any> = formData.spec;
const backendFormname = formData.backendFormName
const navigate = useNavigate();