I am new to the Azure Devops. Your help is very appreciated!! thanks!
I am trying to add EF migration into my project build/release pipeline. I got error on task : build EF Migration by using Command line:
migrations script -i -p TestDBDDeploy -o $(Build.ArtifactStagingDirectory)/Migrations/migration.sql
error showed:
Starting: Build EF Migration
==============================================================================
Task : Command line
Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version : 2.201.1
Author : Microsoft Corporation
Help : https://learn.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/ef141c6d-a3c5-4563-aac6-3418165fd854.sh
You can invoke the tool using the following command: dotnet-ef
Tool 'dotnet-ef' (version '6.0.9') was successfully installed.
/home/vsts/work/_temp/ef141c6d-a3c5-4563-aac6-3418165fd854.sh: line 2: migrations: command not found
##[error]Bash exited with code '127'.
Related
I am trying to get this pipeline to run: https://gitlab.com/FLI_Bioinfo/WGSBAC
And i Followed the installation procedures (as written in the link).
I am running this on Ubuntux64 for Windows.
If i run the command now, i get the following output:
perl ../../WGSBAC/wgsbac.pl --table meta_ba.csv --results ../results/ --kraken ../../minikraken_8GB_20200312 --snippy --cansnper some-organism --run
Output:
Hello
This is WGSBAC 2.2.0
a pipeline for genotyping and characterisation of bacterial isolates utilizing whole-genome-sequencing (WGS) data
Send complaints to Jörg Linde
Here you can find help and information https://gitlab.com/FLI_Bioinfo/WGSBAC
Or use wgsbac.pl --help
Checking input and configuring pipeline
Created config file: ../results/config.yaml
Configuration sucessfully finished
Starting pipeline now
snakemake --snakefile ../../WGSBAC/tmpsnakefiles/snakefile_maxim_2022_10_26_16:20.Snakefile --cores 40 --use-conda --conda-prefix ../../WGSBAC/conda/ --configfile ../results/config.yaml --keep-going 2>&1 | tee ../results/log//snakemake.log
Building DAG of jobs...
Creating conda environment /home/maxim/bionformatics/WGSBAC/snakefiles/../../WGSBAC/envs/snippy.yaml...
Downloading and installing remote packages.
CreateCondaEnvironmentException:
Could not create conda environment from /home/maxim/bionformatics/WGSBAC/snakefiles/../../WGSBAC/envs/snippy.yaml:
Command:
mamba env create --quiet --file "/home/maxim/bionformatics/WGSBAC/conda/273eae14f4f2dd9c10d1d9a3730818d7_.yaml" --prefix "/home/maxim/bionformatics/WGSBAC/conda/273eae14f4f2dd9c10d1d9a3730818d7_"
Output:
Encountered problems while solving:
- package snippy-4.6.0-0 requires samtools >=1.10, but none of the providers can be installed
Please carefully check log file ../results/log//snakemake.log
Creating SnakemakeReport.html holding versions of used tools
If i run the whole thing again, I get this error:
Hello maxim
This is WGSBAC 2.2.0
a pipeline for genotyping and characterisation of bacterial isolates utilizing whole-genome-sequencing (WGS) data
Send complaints to Jörg Linde
Here you can find help and information https://gitlab.com/FLI_Bioinfo/WGSBAC
Or use wgsbac.pl --help
Checking input and configuring pipeline
Created config file: ../results/config.yaml
Configuration sucessfully finished
Starting pipeline now
snakemake --snakefile ../../WGSBAC/tmpsnakefiles/snakefile_maxim_2022_10_26_16:20.Snakefile --cores 40 --use-conda --conda-prefix ../../WGSBAC/conda/ --configfile ../results/config.yaml --keep-going 2>&1 | tee ../results/log//snakemake.log
Building DAG of jobs...
Creating conda environment /home/maxim/bionformatics/WGSBAC/snakefiles/../../WGSBAC/envs/rxls.yaml...
Downloading and installing remote packages.
CreateCondaEnvironmentException:
Could not create conda environment from /home/maxim/bionformatics/WGSBAC/snakefiles/../../WGSBAC/envs/rxls.yaml:
Command:
mamba env create --quiet --file "/home/maxim/bionformatics/WGSBAC/conda/db3866e415bc9e53b432019847e380fa_.yaml" --prefix "/home/maxim/bionformatics/WGSBAC/conda/db3866e415bc9e53b432019847e380fa_"
Output:
Encountered problems while solving:
- package mro-base_impl-3.5.1-h9a62091_0 requires _r-mutex 1.* mro_2, but none of the providers can be installed
Please carefully check log file ../results/log//snakemake.log
Creating SnakemakeReport.html holding versions of used tools
I am not changing a thing. How can I solve this?
Is there any demo or useful command for run sonar scanner in YML file.Because my solar scanner command is not working with gitlab runner.
$ sonar-scanner
/bin/bash: line 92: sonar-scanner: command not found
ERROR: Job failed: exit code 1
When pulling and running a Linux docker based image in AZURE PIPELINE, I get this error:
"image operating system "Linux" cannot be used on this platform"
I create a Linux docker image
I pushed the image to azure registry
I setup the azure pipeline as follow:
Docker CLI
Azure CLI:
I login to registry
Command Line:
I do: docker pull image
I do: docker run -it image
When I run the pipeline, I get this error:
"image operating system "Linux" cannot be used on this platform"
Script output:
2019-03-25T21:23:03.4513990Z ##[section]Starting: Command Line Script
2019-03-25T21:23:03.4616971Z ==============================================================================
2019-03-25T21:23:03.4617284Z Task : Command Line
2019-03-25T21:23:03.4617442Z Description : Run a command line script using cmd.exe on Windows and bash on macOS and Linux.
2019-03-25T21:23:03.4617592Z Version : 2.146.1
2019-03-25T21:23:03.4617715Z Author : Microsoft Corporation
2019-03-25T21:23:03.4618046Z ==============================================================================
2019-03-25T21:23:04.8241638Z Generating script.
2019-03-25T21:23:04.9020040Z ##[command]"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\157d3a61-fe5f-46b2-b74e-1082d4532014.cmd""
2019-03-25T21:23:05.7814076Z v1: Pulling from hubb-api-tests
2019-03-25T21:23:06.2370457Z image operating system "linux" cannot be used on this platform
2019-03-25T21:23:06.2872386Z the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
2019-03-25T21:23:06.3934386Z ##[error]Cmd.exe exited with code '1'.
2019-03-25T21:23:06.4549404Z ##[section]Finishing: Command Line Script
I expect to be able to pull the image and run it on Azure DevOps pipeline since I tested the same steps on my local computer with no problems.
Thank you so very much
You can only achieve this using your own windows agent configured to allow to run linux containers on windows. hosted agents wont allow that.
I am absolute beginner in Jenkins started learning from yesterday. I went through theory session yesterday that went quit well. However, on when I am trying hands on it I stuck with probably petty issue for Jenkins user.
I am running Jenkins on my mac machine and it's a completely brand new setup
here is the error
+ echo 'build start...'
build start...
[first-job] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/jenkins2233817479314329111.sh
+ npm install
/Users/Shared/Jenkins/tmp/jenkins2233817479314329111.sh: line 2: npm: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Project config.
My goal is, on hosted linux preview, copy built/archived zip file to azure storage file system.
On Hosted linux preview , I would like to copy build archive (single zip file) from VSTS build to azure storage file using azCopy. I've tried both flavors of instructions for install for linux. Both fail with
2018-05-06T23:59:51.7967023Z 2018-05-06 23:59:50 (53.5 MB/s) - ‘azcopy.tar.gz’ saved [68428738/68428738]
2018-05-06T23:59:51.7975469Z
2018-05-06T23:59:52.8481973Z ./install.sh: line 20: rsync: command not found
Everything before and after this error is correct. How do I install azCopy into Hosted linux preview.
The build task runs a script. The variables in the script echo correctly.
EDITS :
When I try to use the command line to use azCopy directly, I get
******************************************************************************
Starting: Run azCopy
******************************************************************************
==============================================================================
Task : Command Line
Description : Run a command line with arguments
Version : 1.1.3
Author : Microsoft Corporation
Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
==============================================================================
Failed which: Not found azCopy: null
undefined failed with error: Failed which: Not found azCopy: null
******************************************************************************
Finishing: Run azCopy
******************************************************************************
The azCopy is available on Hosted linux preview agent, so call azcopy command directly (e.g. Command line, azure cli tasks)