lt-qcom-linux: improve parameters

trigger-lt-qcom-linux:
* we need tags so that "git describe" gives something useful
* we strip 'origin/' from the branch name since it's not needed
* we convert the kernel version into a kernel 'ABI', e.g. 4.9.47 -> 4.9.0

lt-qcom-linux:
* add empty params for the params sent by trigger, so that we can run the job
manually as well
* add param for kernel repo

Change-Id: Ia0002cf828b7d55b381bfd4116a48ab08ec4b033
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
diff --git a/lt-qcom-linux.yaml b/lt-qcom-linux.yaml
index e15453f..7e71666 100644
--- a/lt-qcom-linux.yaml
+++ b/lt-qcom-linux.yaml
@@ -14,12 +14,22 @@
             linaro-landing-team-qualcomm-personnel:
                 - job-build
                 - job-cancel
+    parameters:
+        - string:
+            name: KERNELREPO
+            default: 'https://git.linaro.org/landing-teams/working/qualcomm/kernel.git'
+        - string:
+            name: KERNELRELEASE
+        - string:
+            name: KERNELVERSION
+        - string:
+            name: KERNELBRANCH
     disabled: false
     node: docker-jessie-amd64
     display-name: 'Qualcomm LT Linux kernel build'
     scm:
         - git:
-            url: https://git.linaro.org/landing-teams/working/qualcomm/kernel.git
+            url: ${KERNELREPO}
             refspec: +refs/heads/${KERNELBRANCH}:refs/remotes/origin/${KERNELBRANCH}
             name: origin
             branches: