-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added the if statement #5341
added the if statement #5341
Conversation
buildenv/jenkins/JenkinsfileBase
Outdated
makeTestCmd = "$RESOLVED_MAKE;cd ./aqa-tests; . ./scripts/testenv/testenvSettings.sh;cd ./TKG; \$MAKE $testParam" | ||
}else{ | ||
makeTestCmd = "$RESOLVED_MAKE";cd. /aqa-tests; cd .TKG; \$MAKE $testParam" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DYNAMIC_COMPILE is a boolean, not a string. Please change the code to the following:
String makeTestCmd = "$RESOLVED_MAKE";cd. /aqa-tests/TKG; \$MAKE $testParam"
if (env.DYNAMIC_COMPILE) {
makeTestCmd = "$RESOLVED_MAKE;cd ./aqa-tests; . ./scripts/testenv/testenvSettings.sh;cd ./TKG; \$MAKE $testParam"
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove else
Signed-off-by: Hana Mostafa <[email protected]>
testenvSettings.sh should run only once All four commits do the same thing, was a git mistake on my side signed-off-by: Hana [email protected] |
Thanks @Hana3706 for the update. However, the code does not match the suggested #5341 (comment) |
@llxia am so sorry for this but can you point out to me how it doesn't match the code bcs on my local computer the code is updated to match the suggested changes, perhaps there was an issue with the version I commit... |
Hi @Hana3706 Usually you can
|
@LongyuZhang thanks a lot for the feedback! |
@Hana3706 If you can rebase on the currently branch, it would be great. I suggested re-create new branch since you commits may already mixed with merged commits. So feel free to try rebase on this branch first. |
Signed-off-by: Hana Mostafa <[email protected]>
Signed-off-by: Hana Mostafa <[email protected]>
@@ -6,7 +6,10 @@ import org.tap4j.model.TestSet; | |||
def makeTest(testParam) { | |||
String tearDownCmd = "$RESOLVED_MAKE; \$MAKE -f ./aqa-tests/TKG/testEnv.mk testEnvTeardown" | |||
// Note: keyword source cannot be used in Jenkins script. Therefore, using "." instead. | |||
String makeTestCmd = "$RESOLVED_MAKE;cd ./aqa-tests; . ./scripts/testenv/testenvSettings.sh;cd ./TKG; \$MAKE $testParam" | |||
String makeTestCmd = "$RESOLVED_MAKE";cd. /aqa-tests/TKG; \$MAKE $testParam" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the cd.
should be cd .
@@ -6,7 +6,10 @@ import org.tap4j.model.TestSet; | |||
def makeTest(testParam) { | |||
String tearDownCmd = "$RESOLVED_MAKE; \$MAKE -f ./aqa-tests/TKG/testEnv.mk testEnvTeardown" | |||
// Note: keyword source cannot be used in Jenkins script. Therefore, using "." instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be moved into the if
block too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make sure, do you want me to move the import otf.tap4j.model.TestSet comment inside my if statement on line 10 or before it on line 9?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment // Note: keyword source cannot be used in Jenkins script. Therefore, using "." instead.
is for makeTestCmd = "$RESOLVED_MAKE;cd ./aqa-tests; . ./scripts/testenv/testenvSettings.sh;cd ./TKG; \$MAKE $testParam"
, so they should be together.
if (env.DYNAMIC_COMPILE){ | ||
makeTestCmd = "$RESOLVED_MAKE;cd ./aqa-tests; . ./scripts/testenv/testenvSettings.sh;cd ./TKG; \$MAKE $testParam" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (env.DYNAMIC_COMPILE){ | |
makeTestCmd = "$RESOLVED_MAKE;cd ./aqa-tests; . ./scripts/testenv/testenvSettings.sh;cd ./TKG; \$MAKE $testParam" | |
} | |
if (env.DYNAMIC_COMPILE){ | |
// Note: keyword source cannot be used in Jenkins script. Therefore, using "." instead. | |
makeTestCmd = "$RESOLVED_MAKE;cd ./aqa-tests; . ./scripts/testenv/testenvSettings.sh;cd ./TKG; \$MAKE $testParam" | |
} |
@@ -6,7 +6,10 @@ import org.tap4j.model.TestSet; | |||
def makeTest(testParam) { | |||
String tearDownCmd = "$RESOLVED_MAKE; \$MAKE -f ./aqa-tests/TKG/testEnv.mk testEnvTeardown" | |||
// Note: keyword source cannot be used in Jenkins script. Therefore, using "." instead. | |||
String makeTestCmd = "$RESOLVED_MAKE;cd ./aqa-tests; . ./scripts/testenv/testenvSettings.sh;cd ./TKG; \$MAKE $testParam" | |||
String makeTestCmd = "$RESOLVED_MAKE";cd. /aqa-tests/TKG; \$MAKE $testParam" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String makeTestCmd = "$RESOLVED_MAKE";cd. /aqa-tests/TKG; \$MAKE $testParam" | |
String makeTestCmd = "$RESOLVED_MAKE";cd ./aqa-tests/TKG; \$MAKE $testParam" |
@Hana3706 are you still working on this PR? If so, please address the above comments. Thanks |
Closing as stale. Reopen if requested updates are made. |
solved the issue #5297
add a if statement