Posts

Groovy multiline shell script in Jenkins sh step does not return stdout

Image
1 I am trying to save the output of a groovy shell script in a variable. test = sh(returnStdout: true, script: "#!/bin/bash -l && export VAULT_ADDR=http://ourVault.de:8100 && export VAULT_SKIP_VERIFY=true && vault auth ${VAULT_TOKEN} && vault read -field=value test/${RELEASE2}/ID").trim() But there is no output and I wonder why it does not capture the output? If I do this: def test = "" sh"""#!/bin/bash -l export VAULT_ADDR=http://ourVault.de:8100 export VAULT_SKIP_VERIFY=true vault auth ${VAULT_TOKEN} ${test}="$(vault read -field=value emea/test/hockey/ios/${RELEASE2}/appID)" """ I see the output in the console. However, it doesn't get captured either. Is there any other way of ca...

Floating lines in align environment

Image
1 I'm using the align environment to align some equations, and I would like to insert some comments between them. The problem is that I'm using & to align the equals, and because my comments don't contain some, they make the equations shift to the right. For example : begin{align*} 1 &=& 3 - 2 \ text{And because 2 = 1 + 1} \ &=& 3 - 1 - 1 end{align*} Okay, this is a stupid example but the problem is the equals will be aligned after the comment "and because...". Do you have any idea of how I could tell LaTeX to "ignore" the comment and make it "float"? math-mode spacing equations share | improve this question ...