Skip to content
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

Shell ++ Failing with msg not found echo: null #103

Open
aleksandro83 opened this issue Aug 31, 2018 · 0 comments
Open

Shell ++ Failing with msg not found echo: null #103

aleksandro83 opened this issue Aug 31, 2018 · 0 comments

Comments

@aleksandro83
Copy link

aleksandro83 commented Aug 31, 2018

I'm trying to execute a script sh in my repository root folder but I am getting the message error bellow:

2018-08-31T20:11:21.8296793Z ##[section]Starting: Shell Script
2018-08-31T20:11:21.8302330Z ==============================================================================
2018-08-31T20:11:21.8302515Z Task : Shell++
2018-08-31T20:11:21.8302637Z Description : Execute bash script
2018-08-31T20:11:21.8302771Z Version : 0.3.1
2018-08-31T20:11:21.8302889Z Author : ms-devlabs
2018-08-31T20:11:21.8303035Z Help : More Information
2018-08-31T20:11:21.8303216Z ==============================================================================
2018-08-31T20:11:22.0840136Z not found echo: null
2018-08-31T20:11:22.0887655Z ##[section]Finishing: Shell Script

Here is may script:

#!/usr/bin/env bash

DIR=/d/git/eSim.Beneficio
if [ -d "$DIR" ]; then
    printf '%s\n' "Removing Lock ($DIR)"
    rm -rf "$DIR"
fi

#navigate to git directory
cd /d/git/

#clone repo
git clone https://<user>:<password>@mongeral.visualstudio.com/DefaultCollection/Projetos/_git/eSim.Beneficio

cd /d/git/eSim.Beneficio

# Checkout master branch and merge version branch into master
git checkout automaticMergeTest
git merge master --no-ff --no-edit
git push
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)

# Success
echo "-------------------------------------------------------------------------"
echo "Merge master into $CURRENT_BRANCH complete"

I've ran this script in build server e got success.

Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant